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:
Feb 26, 2012 | HEWLETT-PACKARD Computers & Internet
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 | Computers & Internet
Aug 25, 2010 | Microsoft Computers & Internet
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,474 people viewed this question
Usually answered in minutes!