>Hi John,
>
>Can't assume my customers will have WSH. Actually, this is a case where VB seems to be the right tool. I'm planning a VB applet that investigates all defined printers as well as the default one and if any are assigned to LPT1 and allows my clients to redirect LPT1 to the printer of their choice, but I need to know the ins and outs of the "NET USE" command. What do you think?
>
You ought to at least use the Win32API - you can attach a printer using WNetAddConnection()
>Alex
>
>
>>I think this can be done with the Printers object in the Windows Scripting Host. I think you can connect that way and then set it as your default printer. Hopefully Mr. Tasker will chime in and provide more detail :-)
>>
>>>Does anybody have detailed information on the NET USE command. I need it to redirect printer output from LPT1: to a printer in the network in Win2000.
>>>
>>>TIA,
>>>
>>>Alex