Do you have a scripting-related question or problem? You can send your question or problem to winscriptsol@winnetmag.com.
How can I make my scripts clear the Windows desktop when they start to run?
To clear the Windows desktop manually, you typically press the Windows logo key and the M key simultaneously. Unfortunately, you can't programmatically send this key combination to the Windows shell or any other application. Although the Windows logo key has a key code (i.e., a unique code number identifying that key), Windows Script Host's (WSH's) WshShell.SendKey method doesn't support that key code.
However, you can use the Shell.Application object. This COM object is natively available with any version of Windows 98 and newer Windows OSs, including Windows XP and Windows 2000. The Shell.Application object isn't a native part of Windows NT 4.0, but you can obtain and use the object by installing Microsoft Internet Explorer (IE) 4.0 or later. . . .

