Thursday 21 February 2008

List of Special Folders

AllUsersDesktop
AllUsersStartMenu
AllUsersPrograms
AllUsersStartup
Desktop
Favorites
Fonts
MyDocuments
NetHood
PrintHood
Programs
Recent
SendTo
StartMenu
Startup
Templates

Example:

Set WshShell = WScript.CreateObject("WScript.Shell")
WSCript.Echo "My documents are in: " & WshShell.SpecialFolders("MyDocuments")

Output: C:\Documents and Settings\darconio\My Documents

No comments: