Question about Computers & Internet
I am working as a VB6 programmer.
To print a .txt file through DOS mode i am using a batch file with code
copy mydoc.txt to prn:
But it is not working in USB port printers.
Plz send me the VB6 code for printing a text file using USB printers.
Google for DOS PRINT USB, and you'll find some utilities that do this.
Or, you can include some commands in your batch file.
First, get the device name:
In a DOS window, type NET VIEW ComputerName (or use 127.0.0.1)
Once you know the printer share name, you use it in a batch file.
NET USE lpt1: \\ComputerName\ShareName /Persistent:Y
This captures the print queue to the shared printer.
You must also go into Printer Properties/Advanced/Print Processor and set it to TEXT
Your copy, print and other commands will work.
Posted on Jul 18, 2008
a 6ya expert can help you resolve that issue over the phone in a minute or two.
best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.
Posted on Jan 02, 2017
Tips for a great answer:
Mar 18, 2011 | Zebra TLP 2844-Z Thermal Label Printer
Creating a batch file
Microsoft Windows and other users
To create a basic batch file in MS-DOS, follow the below steps that give you an example of how to create a basic batch file.
Jan 04, 2011 | Computers & Internet
Jul 28, 2009 | Zebra TLP 2844-Z Thermal Label Printer
Jan 16, 2009 | Lexmark T644 Laser Printer
Sep 24, 2008 | Zebra TLP 2844-Z Thermal Label Printer
Jul 24, 2008 | Zebra LP 2844 Thermal Printer
1. Save your text file (.txt).
2. On the command prompt navigate to that directory
3.Type "Lpr -S 192.168.1.200 -P lp text.txt"
Substitute 192.168.1.200 for your copier's ip
Substitute text.txt to filename.
Or you can: to print from MS-DOS apps.
1. Share the printer on a networked windows computer. Make sure you make the name MS-DOS compatible.
2. At a DOS prompt, type the following command:
"net use lpt1: \\servername\printer_share/persistent:yes"
NOTE Servername=computer name
printer_share=printers share name
Sep 28, 2007 | Office Equipment & Supplies
Mar 22, 2006 | Samsung ML 2010 Laser Printer
1,475 people viewed this question
Usually answered in minutes!