This folder can be opened by typing Win + R and then Shell:startup
.
I want to make a script change directory to this folder. How can I do this?
The startup folder can be determined via the SpecialFolders
property of the WshShell
object. Changing the current directory is done via the CurrentDirectory
property.
Set sh = CreateObject("WScript.Shell")
sh.CurrentDirectory = sh.SpecialFolders("Startup")
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.