开发者

Starting a .bat with a service

开发者 https://www.devze.com 2023-03-31 19:17 出处:网络
I have a .bat file I want to start开发者_运维技巧 every time windows loads.Is there a cheap way of having a service (or something else, I don\'t care what) launch this .bat file?Preferably I do not wa

I have a .bat file I want to start开发者_运维技巧 every time windows loads. Is there a cheap way of having a service (or something else, I don't care what) launch this .bat file? Preferably I do not want the user to see any of this happening.

Thanks.


I'd use the Windows Task Scheduler personally.

Edit:

The above link is primarily for the API. Here's a link for using the Task Scheduler 2.0 GUI.


You don't need a service... Just place it in the users Startup folder or use the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run entry in the registry.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号