脚本专栏 
首页 > 脚本专栏 > 浏览文章

WScript.Shell对象SpecialFolders属性未公开文档分享

(编辑:jimmy 日期: 2024/10/18 浏览:3 次 )
特殊文件夹名称用于索引该集合以检索所需的特殊文件夹,文档中列出了下面的特殊文件夹:

AllUsersDesktop
AllUsersStartMenu
AllUsersPrograms
AllUsersStartup
Desktop
Favorites
Fonts
MyDocuments
NetHood
PrintHood
Programs
Recent
SendTo
StartMenu
Startup
Templates
不过今天在用OllyDbg调试VBS的时候,发现文档中少写了一个AppData文件夹,作文以记之。
复制代码 代码如下:
'Author: Demon
'Date: 2012-9-25
'Website: http://demon.tw
Dim WshShell
Set WshShell = CreateObject("wscript.Shell")
WScript.Echo WshShell.SpecialFolders("AppData")


原文来自: http://demon.tw/programming/wscript-shell-specialfolders.html
上一篇:VBS合并一个文件夹里的TXT的实现代码
下一篇:VBS中获取系统本次及上次开关机时间的代码(WinXP/win2003/Win7兼容版)