Howes
Howes

Reputation: 819

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.

Upvotes: 2

Views: 287

Answers (2)

avanek
avanek

Reputation: 1659

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.

Upvotes: 3

JJ.
JJ.

Reputation: 5475

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.

Upvotes: 2

Related Questions