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. UTF-16与UCS-2的区别
  2. VB6拾遗:虚幻的指针
  3. VeryPDF PDF2Word v3.1 注册码
  4. InputBox与两数相加——一个简单的VBS脚本问题
  5. JavaScript函数参数,传值还是传址?

留下回复