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

标签: , , , ,

WshShell对象的SpecialFolders属性返WshSpecialFolders 对象,该对象是一个特殊文件夹集合,其中包含整套Windows特殊文件夹。

特殊文件夹名称用于索引该集合以检索所需的特殊文件夹,文档中列出了下面的特殊文件夹:

  • 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: https://demon.tw
Dim WshShell
Set WshShell = CreateObject("wscript.Shell")
WScript.Echo WshShell.SpecialFolders("AppData")
赞赏

微信赞赏支付宝赞赏

随机文章:

  1. 批处理技术内幕:预处理
  2. 用VBS生成GUID
  3. windows从服务器同步时间
  4. 在VC中编译运行程序的小知识点
  5. 实现简单的VBS加密

留下回复