WScript. The shell object specialfolders property does not expose document sharing

Time:2022-5-23

The special folder name is used to index the collection to retrieve the required special folders. The following special folders are listed in the document:

AllUsersDesktop
AllUsersStartMenu
AllUsersPrograms
AllUsersStartup
Desktop
Favorites
Fonts
MyDocuments
NetHood
PrintHood
Programs
Recent
SendTo
StartMenu
Startup
Templates
However, when debugging VBS with OllyDbg today, I found that an appdata folder was missing in the document, so I can write a composition to remember it.

Copy codeThe code is as follows:


‘Author: Demon
‘Date: 2012-9-25
‘Website: http://demon.tw
Dim WshShell
Set WshShell = CreateObject(“wscript.Shell”)
WScript.Echo WshShell.SpecialFolders(“AppData”)

Original text from: http://demon.tw/programming/wscript-shell-specialfolders.html