Microsoft® Windows® Script Host
WshSpecialFolders Object
WSH Reference
Version 1

See Also                      Properties


Description
Returns the paths for Windows shell folders such as the desktop folder, Start menu folder, and personal document folder.
Remarks
Not exposed; accessed through the SpecialFolders property. Can be used to get the location of the desktop folder in order to create shortcuts on the desktop.

Example
The following example generates a message box containing the path to the desktop folder:
Set WshShell = WScript.CreateObject("WScript.Shell")
MsgBox "Your desktop is " & WshShell.SpecialFolders("Desktop")