| Author |
printing files over a lan using dos
|
|
| Mike_Mc 2001-07-20, 9:19 pm |
| Anyone know how to send a print file to a network printer using a dos command?
I have been trying to do this and have had no luck...
The print server in there and everything communicates through windows (NT 4) etc.
But the file won`t print unless it`s on a local machine as it seems to want LPT1 to print to.
Here`s an example of the command I tried to use:
copy test.prt\\PRINTSERV\Laser (Laser is the share name)
this command says "network path not found"
So I tried this command:
copy test.prt\\PRINTSERV\LPT1
I got the same error message.
However when I physically move the printer and connect it directly to the local machine and type: copy test.prt LPT1
The file starts to print.
I am stumped and I know it`s something simple or maybe not.
So if anyone can help me I appreciate it! Mike | |
| ccieToBe 2001-07-20, 9:43 pm |
| You need to map an LPT port to the network path, then just send jobs to that port. If it's a DOS program being run in Windoze do the following:
Select Start > Settings > Printers
Right click on the printer and Select "Properties"
Click the "Details" tab
Click "Capture Printer Port"
If you're running DOS, there's a command that allows you to do this, but I forget the syntax. Try searching for this on Microsoft's website. | |
| TW2001 2001-07-20, 11:08 pm |
| print /d:\\<printserver>\<sharename> <drive>:\<path>\<filename> | |
| Mike_Mc 2001-07-20, 11:47 pm |
| so the command line print /d:\\<printserver>\<sharename> <drive>:\<path>\<filename> should work?
Ok I think I see now, but where does /d: come in? is that a drive?
I`m actually working from within windows with a dos window.
Ok humour me for a minute while I type this out to see if I have it or not:
print /d:\\PRINTSERV\Laser e:\maps\map.prt
so this line is the actual names and share names for what I want to do and the file I want to print resides in the maps directory on the E drive.
I`m still trying to figure out what the /d: is for.....
man I should know this! I appreciate your helpQ! Mike | |
| Taqwus 2001-07-21, 6:52 pm |
| You could try the Net Use command to redirect a network connection to the LPT 1.
Where I work at we have a few programs we need to do that to.
the syntaax is:
net use lpt1 //(UNC printer name)
then you can use the normal dos printing |
|
|
|