Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using 'NET USE' command to redirect LPT1 output
Message
De
13/01/2001 20:34:33
 
 
À
12/01/2001 11:17:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00462995
Message ID:
00463465
Vues:
15
Hi John,

Can't assume my customers will have WSH. Actually, this is a case where VB seems to be the right tool. I'm planning a VB applet that investigates all defined printers as well as the default one and if any are assigned to LPT1 and allows my clients to redirect LPT1 to the printer of their choice, but I need to know the ins and outs of the "NET USE" command. What do you think?

Alex


>I think this can be done with the Printers object in the Windows Scripting Host. I think you can connect that way and then set it as your default printer. Hopefully Mr. Tasker will chime in and provide more detail :-)
>
>>Does anybody have detailed information on the NET USE command. I need it to redirect printer output from LPT1: to a printer in the network in Win2000.
>>
>>TIA,
>>
>>Alex
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform