Starting a .bat with a service
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.
精彩评论