Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I write the text file into DOS using TYPE [filename.txt] and now i want to print the output of TYPE DOS command into dot matrix printer which connected in USB port(virtual Port)

share|improve this question
Possible duplicate of Batch file for printing text file to virtual port. If you need to add more detail or clarify something, edit your existing question instead of posting a new one. – Karan Jun 21 '13 at 22:57

First you need to share the printer. Then use this following batch code:

type filename.txt > \\computername\sharedprintername
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.