Windows 自动启动 bat

Posted mrxiedh

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Windows 自动启动 bat相关的知识,希望对你有一定的参考价值。

创建文件,然后把这个文件放到window开机自动执行的目录中,之后的每次开机都会重新启动这个脚本

cd /d %~dp0

%1 start "" mshta vbscript:createobject("shell.application").shellexecute("""%~0""","::",,"runas",1)(window.close)&exit

e:

cd e:kuban-iot-gateway

pm2 start processes.json

以上是关于Windows 自动启动 bat的主要内容,如果未能解决你的问题,请参考以下文章

tomcat怎么做成windows自动启动的服务

怎么把.bat添加成系统服务让开机自动启动

怎么让“bat文件”自动运行?

windows bat启动程序和监控程序自启动

windows bat启动程序和监控程序自启动

Windows开机自动执行bat脚本