Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Default printer
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
00402172
Message ID:
00402212
Vues:
13
>is there any commands i can call to tell me which printer is the windows default printer and the port it is printing to?

You can use SET('PRINTER',2) to get the default Windows printer, or SET('PRINTER',3) to get the default VFP printer, and then spin through the the collection returned by the Wscript.Network COM Object's EnumPrinterConnections to determine the port assignment associated ih the Windows printer name.

Check the MS WSH site or the WSH FAQ site in my signature block for details.
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
Répondre
Fil
Voir

Click here to load this message in the networking platform