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?
-
ViciousXUSMC Master Viking NBR Reviewer
-
you could try powershell script or a macro program
http://elegantcode.com/2008/12/08/automate-daily-tasks-with-powershell/ -
ScuderiaConchiglia NBR Vaio Team Curmudgeon
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 -
ViciousXUSMC Master Viking NBR Reviewer
-
ViciousXUSMC Master Viking NBR Reviewer
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 -
ScuderiaConchiglia NBR Vaio Team Curmudgeon
Glad I could help!
Gary -
AKAJohnDoe Mime with Tourette's
You should be able to script the whole thing and make into an exe with something like AutoIt
Need help with making an .exe
Discussion in 'Windows OS and Software' started by ViciousXUSMC, Dec 19, 2008.