











CompTIA
Exam Vouchers
Save money on CompTIA exams
| Question of the day
Sign up to receive
interactive practice questions
for MCSE, CompTIA
Cisco and other exams
| TestKing
Get MCSE, MCSD, CCNA, CCNP,A+, N+ and many more | * ExamSheets *
Guide for Success!
Actual Questions & Answers
MCSE, MCSD, A+ ,CCNA, CCNP
Oracle 8i, Oracle 9i Online practice tests
Certification sites Online university Online college Online education Distance learning Software forum Server administration forum Programming resources
|
|  |
| Author |
printing files over a lan using dos
|
Mike_Mc
Harley rider geek M

Registered: Sep 2000 Location: Massett Country: Canada State: Certifications: A+, MCP, Harley rider Working on: Was hoping to complete Windows 2000, Oraclebut now having 6 kids & business keeps me to freakin busy
Total Posts: 78
|
|
printing files over a lan using dos
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
Report this post to a moderator
|
|
07-21-01 02:19 AM
|
|
ccieToBe
Wireless Fanatic

Registered: Jul 2000 Location: Blue Ridge, North Georgia Country: US State: Certifications: CCDA, CNA, MCP, Network+, A+, BSIT Working on: Security+
Total Posts: 2210
|
|
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.
Report this post to a moderator
|
|
07-21-01 02:43 AM
|
|
TW2001
Senior Member

Registered: Mar 2001 Location: Country: USA State: Certifications: A+,MCP Working on: BS CompSci
Total Posts: 1413
|
|
|
07-21-01 04:08 AM
|
|
Mike_Mc
Harley rider geek M

Registered: Sep 2000 Location: Massett Country: Canada State: Certifications: A+, MCP, Harley rider Working on: Was hoping to complete Windows 2000, Oraclebut now having 6 kids & business keeps me to freakin busy
Total Posts: 78
|
|
TW2001?
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
Report this post to a moderator
|
|
07-21-01 04:47 AM
|
|
Taqwus
Warrior-Poet M

Registered: Apr 2000 Location: Norco, La Country: USA State: Certifications: A+, N+, MCSA, HP APS + All LaserJets, World Class Pain In The Äss Working on: A bottle of Captain Morgan and whatever else my company will pay for
Total Posts: 414
|
|
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
__________________
Help Fight Cancer by Joining the United Devices Wheel of Time Team at:
United Devices
If tommorrow never comes, How do we get out of today????
Push to test, Release to detonate
Report this post to a moderator
|
|
07-21-01 11:52 PM
|
|
|
Featured site: MCSE, MCSD, CompTIA, CCNA training videos
Forum Rules: Who Can Read The Forum? Any registered user or guest.
Who Can Post New Topics? Any registered user.
Who Can Post Replies? Any registered user.
Changes: Messages can be edited by their author.
Posts: HTML code is OFF. Smilies are ON. vB code is ON. [IMG] code is ON. |
|
ExamNotes forum archive
|