Question about Operating Systems
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
Tips for a great answer:
Feb 26, 2012 | HEWLETT-PACKARD Operating Systems
on May 30, 2008 | Microsoft Windows Vista Home Premium with...
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 | Operating Systems
Aug 25, 2010 | Microsoft Operating Systems
Feb 26, 2010 | Microsoft DOS 6.22 (755-00007) for PC
Feb 03, 2009 | Microsoft Windows XP Professional With...
Aug 25, 2008 | Microsoft Windows Vista Home Premium with...
Batch file for what?
I once ran across a software called Dosbox that I used to run a customers dos based notes program in XP. It worked well, not sure about batch files, but worth a shot I suppose.
You can find info on it here - http://dosbox.sourceforge.net/
Oct 17, 2007 | Microsoft Windows XP Professional for PC
Oct 08, 2007 | Microsoft Windows XP Professional With...
1,472 people viewed this question
Usually answered in minutes!
Step 2: Please assign your manual to a product: