2015-08-20 19 views

回答

3

可以通過WshShell對象的SpecialFolders屬性確定啓動文件夾。通過CurrentDirectory屬性更改當前目錄。

Set sh = CreateObject("WScript.Shell") 
sh.CurrentDirectory = sh.SpecialFolders("Startup")