Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Default Windows Printer
Message
From
21/07/2000 15:08:11
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00395364
Message ID:
00395644
Views:
15
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
Previous
Reply
Map
View

Click here to load this message in the networking platform