How to make QB write to USB port

December 30, 2009 at 17:52:02
Specs: Windows XP
Is there any wat to make the QuickBasic language write to the USB port?
Terry Morris

edited by moderator: email address deleted


See More: How to make QB write to USB port

Report •


#1
December 31, 2009 at 05:58:36
Please, specify better if you want to redirect LPT1 to USB or whatever else.

Report •

#2
January 1, 2010 at 12:05:50
Sorry I was not more explanatory.
I developed a construction bidding program, in QB, on an 8086 PC. The program worked well until the NT based operating systems. The QB language, as I know it, will only write to the LPT1 port as it doesn't recognize USB.
I was hoping that someone had developed a "work around" for this condition.
Thank You for your response.

Terry Morris
tjmnewknee@aol.com


Report •

#3
January 1, 2010 at 13:40:21
The workaround exists and is very easy; first you have to share your local printer assigning a proper name, e.g. HP_Printer, then issue the command

net use LPT1 \\%computername%\Shared_Printer_Name /persistent:YES

and the data sent in DOS mode to LPT1 are redirected to your USB printer.

Maybe the directive is not retained between boots though the /persistent:YES switch. To have the command issued at each boot, create a straightforward batch by coding

@net use LPT1 \\%computername%\Shared_Printer_Name /persistent:YES

name it, e.g. shareLPT.bat, and store it into the Startup Folder. You are done.


Report •

Related Solutions

#4
January 1, 2010 at 18:12:21
Thank You Ivo,

I will try to follow your instructions. Sounds prety straight forward.

Thanks again,

Terry Morris
tjmnewknee@aol.com


Report •

#5
January 3, 2010 at 14:48:11
Just setup that drive with a letter ?

Report •

Ask Question