Example Analysis of SpecialFolders attribute of WScript.Shell object
This article mainly introduces the example analysis of the SpecialFolders attribute of WScript.Shell object, which is very detailed and has certain reference value. Friends who are interested must finish it!
The special folder name is used to index the collection to retrieve the special folders you want. 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, today, when I was debugging VBS with OllyDbg, I found that an AppData folder was missing in the document.
The 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")
The above is all the content of the article "sample Analysis of SpecialFolders Properties of WScript.Shell objects". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!