Running a bat file in background in windows

2020-04-30 02:02发布

I need to run a bat file in background in windows. I have tried using theSTART command.

The problem is, I connect to this machine remotely & if I log off, then the process gets killed.

Is there any way to keep a bat file running even after I log off from the remote machine?

Thanks in advance

2条回答
我欲成王,谁敢阻挡
3楼-- · 2020-04-30 02:23

If you execute the bat file from a Windows service (using a service account) you will be able to log off and have the bat file execute in the background.

This walkthrough might be handy http://msdn.microsoft.com/en-us/library/zt39148a(v=vs.110).aspx

查看更多
登录 后发表回答