Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 03 DEC 2002 04:55:13PM Marty Rosenbloom wrote:

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


At 03 DEC 2002 05:31PM Richard Wilson wrote:

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


At 04 DEC 2002 09:39AM Marty Rosenbloom wrote:

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


At 04 DEC 2002 09:47AM Richard Wilson wrote:

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


At 04 DEC 2002 10:00AM Don Miller - C3 Inc. wrote:

End the .BAT file with an EXIT statement. That should do it, I think.

Don Miller

C3 Inc.

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/038721e0e92a778685256c8400786974.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1