Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing to USB port
Message
De
25/10/2002 04:03:44
 
 
À
25/10/2002 01:04:24
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00715272
Message ID:
00715300
Vues:
14
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform