Skip to content

windows如何做成后台运行 #530

Answered by xvhaifeng
946106004 asked this question in Q&A
Discussion options

You must be logged in to vote

提供一种方案
1.将启动命令编写为 aliyundrive-webdav.bat 脚本
2.编写 vbs 脚本后台启动
脚本内容为
set ws=WScript.CreateObject("WScript.Shell")
ws.Run "目标脚本 /start",0
示例:
set ws=WScript.CreateObject("WScript.Shell")
ws.Run "D:\Script\aliyundrive-webdav.bat /start",0
3.将 vbs 脚本放到 C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup 实现开机自启

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by messense
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #529 on July 24, 2022 13:45.