Hi!
Thanks for the Info.
Sarosh
>>Hi!
>>
>>Is there a way to findout the current Default Printer using a Windows API Call or using the Windows Scripting Host. (Not through VFP) in Win98/NT/2000
>>
>>The Windows Scripting Host gives me a list of printers but does not tell me which Printer from that list is the Default Printer.
>>
>Sarosh,
>
>The Windows Script Host provides no means to determine the default printer. The API call you're interested in is GetDefaultPrinter()
DECLARE INTEGER GetDefaultPrinter IN Winspool.drv;
> STRING @lpbuffer, INTEGER @lpsize
>lcbuffer = SPACE(260)
>lnsize = LEN(lcbuffer)
>* The call returns non-zero on success
>* If zero, call GetLastError() for information
>? GetDefaultPrinter(@lcbuffer, @lnsize)
>? LEFT(lcbuffer, lnsize - 1)