Hi,
I am trying to print to a serial printer using a DOS command. In order to get this printer to work, I have to switch to DOS and type in the following commands:
C:\]MODE COM1:9600,N,8,1
C:\]Copy C:\Text.txt COM1
I have to remain in DOS until the second command has been executed. I want to do this programmatically. I have successfully run Utility-Runwin to accomplish the second command to LPT1 and a parallel printer, but can't seem to make it work for a serial printer and two concurrent commands. Any help would be appreciated.
TIA,
Marty
how about a .bat file. you may also need to setup .bat files for each commands and the use CALL in the controlling bat file
Rich,
I created one batch file for both commands and it works as planned. Thanks for the thought. It's so simple and easy.
I just need to figure out how to close the DOS dialog box when it is complete. I have an OLD version of OI (2.61).
Marty
glad it worked. Sorry cant help on OI closing the dos box. I didnt own a mouse when OI came out so I never loaded it. Also all of my clients are on g2 or arev
Rich
End the .BAT file with an EXIT statement. That should do it, I think.
Don Miller
C3 Inc.