Hi, how do I call a dos program without a dos window popping up ?
And also I need to print a file,
but I always get some error messages while trying to call "type file.txt >lpt1" with SHELL, anyone had smiliar problems ?
IIRC, you cannot run a dosbased program without a dobox popping up. I think the best you can do is to create a shortcut to the dosprogram and set it to run minimized.
About the printing. I think that this is a windowsrelated problem. You might want to try to set the printer to work with DOS aswell, but I don't know if that'll work.
Dennis van Es
PerCom: Research & Development BV
The Netherlands
You could use the method of copying a file to be printed to a file named 'C:\lpt1.txt'. On windows9x this will send the file directly to spcified port. If I remeber correctly, you can access the file even using Navision functions.
It will try to print the file, but if your using a network- or shared printer the error still occurs. Unless you capture the lpt1 port to the network/shared printer.
Dennis van Es
PerCom: Research & Development BV
The Netherlands
[This message has been edited by Dennis (edited 15-02-2000).]
Comments
IIRC, you cannot run a dosbased program without a dobox popping up. I think the best you can do is to create a shortcut to the dosprogram and set it to run minimized.
About the printing. I think that this is a windowsrelated problem. You might want to try to set the printer to work with DOS aswell, but I don't know if that'll work.
Dennis van Es
PerCom: Research & Development BV
The Netherlands
Qwinsoft BV
The Netherlands
You could use the method of copying a file to be printed to a file named 'C:\lpt1.txt'. On windows9x this will send the file directly to spcified port. If I remeber correctly, you can access the file even using Navision functions.
Dennis van Es
PerCom: Research & Development BV
The Netherlands
[This message has been edited by Dennis (edited 15-02-2000).]
Qwinsoft BV
The Netherlands