我尝试编写将文件写入用户启动文件夹的代码。
Set Wshell = CreateObject("WScript.Shell")
Wshell.Run "%COMSPEC% cd \c AppData\Roaming\Microsoft\Windows\Start
Menu\Programs\Startup & copy con master.vbs & x = 1 & x=2^Z",0,True
P.S。我使用cd appdata,因为cmd的默认启动文件夹是C:\ Users \ [Username],启动文件夹的位置是
C:\Users\Appdata\Roaming\Microsoft\Windows\Start Menu\Programs\Startup