How do you print via command line?

Anonymous
2020-07-02T23:28:06+00:00

I can't figure out how to properly use the print command. Here's my printer information:

How should I modify the example from the Microsoft Docs page,

"``print /d:\\copyroom\printer1 c:\accounting\report.txt"

to print a file? This doesn't work,

"print /D:^"\USBPOS-X0\POS-X Thermal Printer^" C:\Users\Briar\rebol\zw"

Any help would be greatly appreciated. I don't put a file extension because I'm writing esc/pos commands along with text to the file.

Windows for home | Windows 10 | Devices and drivers

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Anonymous
    2020-07-02T23:35:58+00:00

    Greetings,

    My name is Rhaine, I'm Independent Community Volunteer. I’m so glad assisting you today

    I am also using Windows pc. Let us work together to sort this out.

    You can try the following steps and command in this link below.

    https://superuser.com/questions/477895/printing...

    Disclaimer: This is a non-Microsoft website. The page appears to be providing accurate, safe information. Watch out for ads on the site that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the site before you decide to download and install it.

    I hope the information above helps. Please let me know how it goes.

    Have a wonderful day ahead and stay safe.

    With Warm Regards,

    Rhaine C.

    0 comments No comments
  2. Anonymous
    2020-07-02T23:56:26+00:00

    Greetings,

    I appreciate your time and effort getting back to my email, if the steps did not work , no worries since this is an open forum, we can ask assistance from other community volunteers about their feedback and suggestion with the printer codes.

    Have a wonderful day ahead and stay safe.

    With Warm Regards,

    Rhaine C.

    1 person found this answer helpful.
    0 comments No comments
  3. Anonymous
    2020-07-03T02:48:50+00:00

    Hello Grifith

    I am Louie, a Microsoft Community member and a fellow Windows 10 user like you. I hope I can help you on your concern.

    Found a command line program (2Printer) which can be use to print documents by batches. please see link below for the information

    https://www.fcoder.com/directions/batch-printin...

    Please let me know if you need more help.

    Sincerely,

    Louie

    0 comments No comments