Microsoft® Windows® Script Host WshSpecialFolders Object |
WSH Reference Version 1 |
Returns the paths for Windows shell folders such as the desktop folder, Start menu folder, and personal document folder.
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.
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")