>>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.