|
Answer» I have such commands in ORDER to test the printer under DOS. I want to write a bat file ,so that i need not to enter so many commands. I simply divided them into 3 groups. 1&2 group is the pre-setting.3rd group is to activate printer.
I want to MAKE a bat file that: 1.setup (the command line appeare that let user see, then the SENTENCE 9600bps set completed) 2.beep buzzer 3.print
I have a autpexe.bat file i put the command call this.bat
How to write this,may i have a starting/sample code?
#1.) Setup baud rate to 9600bps and etc ----------------------------------------- -o 3fb 83 >hit enter -o 3f8 0c >enter -o 3fb 03 >enter
#2.) Send command1 to printer: ----------------------------- -o 3f8 1e >enter ( beep the buzzer)
#3.) Send command2 to printer: ----------------------------- -o 3f8 1b >enter -o 3f8 3F >enter -o 3f8 0a >enter -o 3f8 00 >enter (RESET printer hardware and then self print)Sry,forgot to state.I have a program call debug to execute.
Can i write these inside my printer.bat? Just a try
debug /o 3fb 83 /o 3f8 0c /o 3fb 03
echo. echo. echo. echo. 9600bps baud rate set completed echo. echo. pause try this for the setup section
:: create the debug file > setup.dbg echo o 3fb 83 >> setup.dbg echo o 3f8 0c >> setup.dbg echo o 3fb 03 >> setup.dbg echo q :: execute it debug < setup.dbg
echo. echo. echo. echo. 9600bps baud rate set completed echo. echo. pause
and do the same thing for the other sections
Graham
bad command or line. I try under DOS. Is there a code that allow us to create. so that user need not to hit enter and type so many command line? that is what i wonder.
|