Get the App
SLTechnology News&Howtos  ›  Development  › 

Example Analysis of SpecialFolders attribute of WScript.Shell object

Shulou Source: shulou.com Published: 2022-06-03 05:41:50 11月17日 Update

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!

Tags: Files folders special objects properties examples analysis content documents articles code value composition interests names boys buddies time more knowledge Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Xiaomi MySQL Microsoft Docker