WshShell.SpecialFolders

The SpecialFolders property provides the WshSpecialFolders object for accessing Windows shell folders such as the desktop folder, Start menu folder, and personal document folder.

Syntax

WshShell.SpecialFolders = objWshSpecialFolders
 

Example

' This code fragment shows how to access the desktop folder
    Set WshShell = Wscript.CreateObject("Wscript.Shell")
    MsgBox "Your desktop is " & WshShell.SpecialFolders("Desktop")

See Also

WshSpecialFolders object