How to perform some action every time computer with Windows starts?

3

1

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?

Piotr Dobrogost

Posted 2009-09-03T08:09:08.653

Reputation: 4 413

Answers

8

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.

GaryJL

Posted 2009-09-03T08:09:08.653

Reputation: 884

In XP it's called Scheduled Tasks, not Task Scheduler. – Hello71 – 2010-07-30T02:36:15.787

1This is available in XP as well – Xetius – 2009-09-03T09:39:53.417

I wasn't too sure if this option was in XP. Thanks. – GaryJL – 2009-09-03T09:56:33.460

2

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.

BinaryMisfit

Posted 2009-09-03T08:09:08.653

Reputation: 19 955

I just want to send email from command line (batch file) using BLAT. This does not sound like a service at all :) – Piotr Dobrogost – 2009-09-03T08:16:38.467

Then the Task Scheduler is a better option – BinaryMisfit – 2009-09-03T08:23:31.667

Your answer is still interesting as once I was looking for exactly what you are describing :) +1 – Piotr Dobrogost – 2009-09-03T10:38:43.110