Got it Sergey, thanks again!
>One more thing. The WSH may not be present under Windows version prior to WIN2K and some people remove WSH because they consider it a security risk.
>
>>Thanks Sergey, very useful explanation, as ever!
>>
>>Fernando
>>
>>>The SetDefaultPrinter Win API function is only available in WIn2K and later. The SetDefaultPrinter WSH method is supported under Win98 and later. Besides that there shouldn't be any difference between them.
>>>