Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing to USB port
Message
From
25/10/2002 04:03:44
 
 
To
25/10/2002 01:04:24
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00715272
Message ID:
00715300
Views:
13
>Dear members,
>
>Is it possible to print to USB port printer from Foxpro for DOS 2.6 ?

Yes, but it requires a bit of rethinking to accomplish.

Share the USB printer to the network, and then use the NET USE command to assign the shared printer to a legal DOS device name:
(1)  Share printer MyUSBPrinter to the network as \\MyMachine\MyUSBPRN
(2)  Deassign the local device in case it has been assigned to a net device previously by:
     NET USE LPT2: /D
(3)  Map the local port to the networked print device by:
     NET USE LPT2: \\MyMachine\MyUSBPRN /YES

You may need to persist the share; on some OS (XP for example) the NET USE would read

NET USE LPT2: \\MyMachine\MyUSBPRN /YES /PERSISTENT:YES
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform