VBScript:WshShell对象
一个本地的windows shell对象,可以执行本地程序。
获取:
Wscript.CreateObject("wscript.shell")
属性
CurrentDirectory Property | Environment Property | SpecialFolders Property
方法
AppActivate Method | CreateShortcut Method | Exec Method | ExpandEnvironmentStrings Method | LogEvent Method | Popup Method | RegDelete Method | RegRead Method | RegWrite Method | Run Method | SendKeys Method
属性SpecialFolders返回字符串,如:
desktop = Wscript.CreateObject("wscript.shell").SpecialFolders("Desktop")
'desktop为:"C:\Users\xjb\Desktop"