Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Default Windows Printer
Message
De
21/07/2000 15:08:11
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00395364
Message ID:
00395644
Vues:
14
Hey,

I've never used WSH before...until now. Assuming I can get consistent results accross the machines in my network, this could be pretty cool stuff.

Setting printername to one of the printers returned by APRINTERS() works great.

There is always more to learn than I have time for <g>

>It's part of Windows Scripting Host. Example:
>
>
>oWNet=CreateObject("WScript.Network")
>oWNet.SetDefaultPrinter("printername")
>
>
>
>I've not tried it yet so don't know what you have to use as the printer name.


Take care,
Steve Gibson
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform