Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get Default Printer
Message
De
27/01/2000 15:59:23
 
 
À
27/01/2000 14:03:02
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00323190
Message ID:
00323788
Vues:
19
>>There's maybe 20-25 individual Clipper programs that are run thru one of those old DOS Menu programs like Direct Access. The menu program calls batch files that typically remap drives, which is no problem with WSH, and run the Capture command to setup printers. Mimicking the Capture command is where I'm having problems right now.
>
>What does the Capture command do? Set the default printer? I am sorry if I'm not grasping the obvious, but why do you need a printer path from the registry, when you can get it from SET("PRINTER", 2)? Or is the printer path you're looking for not the current printer? If not, you can use the EnumPrinterConnections method of the Network object to get all the available printers...

CAPTURE just assigns local ports to network queues.
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