Click here to Skip to main content
15,901,205 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can I print to a USB printer from the batch file?
my code is:
VB
cd\
Copy E:\PrintReport.txt USB001
exit

But it's Does not work
Posted
Updated 13-May-13 1:01am
v2

Read here: Print Files from Batch Files[^].

Regards,

— Manfred
 
Share this answer
 
Printing file from notepad add following line in batch file
NOTEPAD /P filename.txt


Or
PRINT filename.txt /D:USB001
 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900