Batch command to print text file on network printer using notepad

  • Thread starter Thread starter John Wirt
  • Start date Start date
J

John Wirt

Is there a batch command that could be used to open a file
in NOTEPAD and send it to a network printer. I tired this
but it did not work:

start /w notepad /p "%temp%\Listing" > \\wdcrobprt03\k-
9016b


John Wirt
 
Try something like;

net use lpt1: \\wdcrobprt03\k
copy "%temp%\Listing.txt lpt1
net use lpt1: /d

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| Is there a batch command that could be used to open a file
| in NOTEPAD and send it to a network printer. I tired this
| but it did not work:
|
| start /w notepad /p "%temp%\Listing" > \\wdcrobprt03\k-
| 9016b
|
|
| John Wirt
|
|
|
 
Back
Top