Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Default printer
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00402172
Message ID:
00402212
Views:
12
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform