windows如何运行.bat文件且设置为开机启动,不显示窗口

160 阅读1分钟

新建 一个文本文件run.txt

然后将set ws=WScript.CreateObject("WScript.Shell")
ws.Run "C:\Users\Administrator\Desktop\dcm_version\dcm4chee2145xx\bin\run.bat /start",0

这段代码复制进去,注意改改自己的批处理文件路径

接着将run.txt的后缀改成run.vbs,

最后将run.vbs文件拷贝到

开始——所有程序——启动;就可以了

然后我们重启——打开任务管理

可以看到有个cmd在运行,ok