The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Need help with making an .exe

    Discussion in 'Windows OS and Software' started by ViciousXUSMC, Dec 19, 2008.

  1. ViciousXUSMC

    ViciousXUSMC Master Viking NBR Reviewer

    Reputations:
    11,461
    Messages:
    16,824
    Likes Received:
    76
    Trophy Points:
    466
    I want to make something very simple, yet I have no idea how to do it.

    At work we have these "Smart Boxes" that print forms automatically like check-in forms for our guests. I just got a work around for a problem we had from the company that makes the boxes. Its a manual code/fix for printing our internet access code onto the forms.

    While not hard for me as a computer savvy person to do, I doubt anybody on my general staff can do it and I need them to be able to update the code once a week when I am not there.

    The process is editing a .PRN file via notepad. Easy enough, then you have to use the command prompt to copy the PRN file to the memory of the smart box.

    This is where I am worried. So I just want to make a script/program that can automatically open the command prompt, type the required things in, and then exit all in just a simple double click.

    Anybody know how to do something like this and can help me?
     
  2. vinumsv

    vinumsv MobileFreak™

    Reputations:
    502
    Messages:
    1,238
    Likes Received:
    0
    Trophy Points:
    55
  3. ScuderiaConchiglia

    ScuderiaConchiglia NBR Vaio Team Curmudgeon

    Reputations:
    2,674
    Messages:
    6,039
    Likes Received:
    0
    Trophy Points:
    205
    Open notepad. Type in all of the stuff you would normally do at the command prompt. Save the file to something like: "TheSmartBoxSetup.txt." Then change the name of the file to "TheSmartBox.BAT". Now create a short cut to that BAT file. Voilà, you have an icon your users can click on which will execute the commands you want. Any BAT file (or shortcut to a BAT file), when double clicked, is automatically executed inside a Command Prompt. There is no need to manually open a command prompt window first.

    Gary
     
  4. ViciousXUSMC

    ViciousXUSMC Master Viking NBR Reviewer

    Reputations:
    11,461
    Messages:
    16,824
    Likes Received:
    76
    Trophy Points:
    466
    Genius! I'll try it out right away.
     
  5. ViciousXUSMC

    ViciousXUSMC Master Viking NBR Reviewer

    Reputations:
    11,461
    Messages:
    16,824
    Likes Received:
    76
    Trophy Points:
    466
    Update, it works great with the .BAT idea.

    I made two files one to open the .PRN file in notepad, and a 2nd one to write the new code to the printer box memory.

    Thanks so much ScuderiaConchiglia +Rep
     
  6. ScuderiaConchiglia

    ScuderiaConchiglia NBR Vaio Team Curmudgeon

    Reputations:
    2,674
    Messages:
    6,039
    Likes Received:
    0
    Trophy Points:
    205
    Glad I could help!

    Gary
     
  7. AKAJohnDoe

    AKAJohnDoe Mime with Tourette's

    Reputations:
    1,163
    Messages:
    3,017
    Likes Received:
    0
    Trophy Points:
    105
    You should be able to script the whole thing and make into an exe with something like AutoIt