Printers while in DOS
Keywords: change print printer DOS WinBatch
Question:
If a person wants to run a DOS program with WinBatch, and he has to change his three
printers, what is the best way to do it? Right now he is using a Run command to change
the printers. The actual program is LPRQ.EXE. He uses the command 6x. The first three
Run's successfully delete the printers, but the other commands to add the new printers aren't
really working. He ends up with 6 icons on the bottom of his screen!?
Is there a command that he can use to concatenate his 6 little programs to change the printers
into one script?
Answer:
- I think he should use a RunWait function instead of a Run function to insure proper
sequencing of the operations.
- Either his default PIF file is not suitable for what he wants to do, or the PIF files
he does have are not correct. I suggest he make a PIF file, ensuring that
the ""CloseWindowOnExit"" box is checked. I think he is running the programs, and his
default PIF file leaves the DOS program on the screen, and they accumulate on the bottom.
- He could write a big DOS batch file that deleted and added his printers.
- If all he wants to do is send some special characters to the printer, he could try
something like:
xx=FileOpen("LPT1","WRITE")
FileWrite(xx,"6x")
FileClose(xx)
Article ID: W13698
Filename: Printers while in DOS .txt
File Created: 1999:04:15:16:55:46
Last Updated: 1999:04:15:16:55:46