在linux下,命令转入后台很简单,加上&即可。
windows下需要使用VBS创建进程,然后杀死父进程(大概)
@ECHO OFF
%1 start mshta vbscript:createobject("wscript.shell").run("""%~0"" ::",0)(window.close)&&exit
start /b d:\rest.exe
#调用管理员权限
%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit
评论 (0)