Dim fso
Set fso = CreateObject("Scripting.FileSystemObject") //绑定FSO对象
Dim tempfolder
Const TemporaryFolder = 2
Set tempfolder = fso.GetSpecialFolder(TemporaryFolder)
Wscript.Echo tempfolder
Set WshShell=Wscript.CreateObject("Wscript.Shell")
'htp://hi.baidu.com/biweilun
'Listallspecialfolders
For Each strFolder In WshShell.SpecialFolders
Wscript.Echo strFolder
Next