Folder, Start Menu folder, and personal document folder.
Syntax
Wshshell. specialfolders = obw.shspecialfolders
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
Wshspecialfolders object
Wshspecialfolders object
This object is not provided directly. To obtain the wshspecialfolders object, use the wshshell. specialfolders attribute.
Progid N/
File Name wshom. ocx
CLSID
IID
The following table describes the attributes associated with the wshspecialfolders object.
Attribute description
Item specifies the full path of the folder (default ).
Count refers to the number of enumerated items.
The number of length enumeration items (jscript ).
Wshspecialfolders. Item
The full path of the folder specified by strfoldername is returned. It is the default property.
Syntax
Wshshell. specialfolders. Item ("strfoldername") = strfolderpath
Wshshell. specialfolders ("strfoldername") = strfolderpath
Note
If the requested folder (strfoldername) is unavailable, wshshell. specialfolders ("strfoldername") returns NULL. For example, Windows 95 does not have the allusersdesktop folder. If strfoldername = allusersdesktop, null is returned.
Windows 95 and Windows NT 4.0 provide the following specified folders:
Allusersdesktop
Allusersstartmenu
Allusersprograms
Allusersstartup
Desktop
Favorites
Fonts
Mydocuments
Nethood
Printhood
Programs
Recent
Sendto
Startmenu
Startup
Templates
Example
'This fragment returns the full path for the Windows Desktop Folder
Set wshshell = wscript. Createobject ("wscript. Shell ")
& Nbs