The name of Windows API function in DECALRE statement is case-sensitive
DECLARE Integer SetDefaultPrinter IN WINSPOOL.DRV String
You can also use WSH SetDefaultPrinter method.
>I thought WinXP came after Win2000. Is ther another API call I can make?
>
>>The SetDefaultPrinter function is only included in Windows 2000 and later.
--sb--