Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to perform some task (start a program) on a computer running Windows every time it's (re)started. It's remote computer and just placing shortcut in autostart doesn't work because it's run every time I log into using remote desktop.

How can I do it?

share|improve this question
up vote 7 down vote accepted

You can use the Windows Task Scheduler. It's been a while since I used it on XP, but in Vista and Windows 7 you can schedule a task to occur on startup. This can be a batch file, or executable.

share|improve this answer
This is available in XP as well – Xetius Sep 3 '09 at 9:39
I wasn't too sure if this option was in XP. Thanks. – GaryJL Sep 3 '09 at 9:56
In XP it's called Scheduled Tasks, not Task Scheduler. – Hello71 Jul 30 '10 at 2:36

You are referring to running an application as a service. If the application supports it you can look at using Service Any. This will start the application when the machine boots without needing to login.

However be aware that most applications don't work with it, unless they are service type daemons already.

share|improve this answer
I just want to send email from command line (batch file) using BLAT. This does not sound like a service at all :) – Piotr Dobrogost Sep 3 '09 at 8:16
Then the Task Scheduler is a better option – BinaryMisfit Sep 3 '09 at 8:23
Your answer is still interesting as once I was looking for exactly what you are describing :) +1 – Piotr Dobrogost Sep 3 '09 at 10:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .