Go Back   TechArena Community > Technical Support > Computer Help > Windows XP > Windows XP Support
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , ,

Sponsored Links



How to start a program at boot up?

Windows XP Support


Reply
 
Thread Tools Search this Thread
  #1  
Old 01-02-2009
jetjock
 
Posts: n/a
How to start a program at boot up?

I would like to have Filemon.exe run immediately as Windows starts.
Can someone please tell me how to do this? Thanks.
Reply With Quote
  #2  
Old 01-02-2009
Bo
 
Posts: n/a
Re: How to start a program at boot up?

Create a shortcut for it, then copy and paste the shortcut into the
startup folder.
Reply With Quote
  #3  
Old 01-02-2009
Bruce Hagen
 
Posts: n/a
Re: How to start a program at boot up?

There are a few ways, but try this.

Put a shortcut icon on the Desktop. Grab the icon with the cursor and left
mouse key and without letting up, drag it to the Start Button, All Programs
and finally to the Startup program and let go.

That should do it. Reboot and check it.
Reply With Quote
  #4  
Old 01-02-2009
Jace5869
 
Posts: n/a
Add the path of the exe to the registry

HKLM->Software->Microsoft->Windows->Run

The easiest way to do this is simply to put a shortcut to each program
you want to start automatically in the Startup folder.

Thank you to all who posted. I knew it had something to do with
"Startup". It's working now.
Reply With Quote
  #5  
Old 06-01-2010
Member
 
Join Date: Jan 2010
Posts: 1
Re: How to start a program at boot up?

Is it possible to add a program that runs in the background, *before* any user logs in to Windows?
Reply With Quote
  #6  
Old 06-01-2010
John John - MVP
 
Posts: n/a
Re: How to start a program at boot up?

Which Windows XP version are you using?

You could accomplish this with a computer startup script or you can have
the program run as a service.

http://www.microsoft.com/resources/d....mspx?mfr=true
Microsoft Windows XP - Assign computer startup scripts

http://support.microsoft.com/kb/137890
How To Create a User-Defined Service
Reply With Quote
  #7  
Old 06-01-2010
Dave Bell
 
Posts: n/a
The target system is running Windos XP Pro, Version 2002, S.P. 3

It sounds like a startup script is what I need.
Basically, I have two small console (non-GUI) programs I want to run as
servers that can be connected to from another PC. The applications work now,
but I have to either start them manually or they can run from shortcuts in
the Start > Programs > Startup folder. Either way, it requires a user to log
in to Windows firat.

It looks like I can do the script installation according to the Microsoft
link you sent, but I am stuck on the first directive"
"1. Open the Group Policy snap-in."
What is *that*?

Yes, I think that using a machine startup script is the best way to go
about this. To open the Group Policy snap-in enter gpedit.msc in the
Start menu Run box.
Reply With Quote
  #8  
Old 06-01-2010
Dave Bell
 
Posts: n/a
Thanks - and I finally scrolled down alittle farther in the Microsoft doc
and found the "Related Topics"!

One more: Does the startup script need to be an actual script (batch file,
presumably?), or can I simply install the two executables as separate
entries?

Well, of course!
Fortunately, this will all end up running on a closed network, anyway...
Reply With Quote
  #9  
Old 06-01-2010
John John - MVP
 
Posts: n/a
It can be a script, batch file, shortcut or the actual path to the
executables. By the way, the application will run under the System
account so don't expect to see the application running or minimized to
the Taskbar when the user logs on and don't expect to be able to
interact with the application when it is running under the System
account. But if you look in the Task Manager you will see it as a
running process under the System account. If you must you can use the
AT command, or PSExec or Assarbad's RUNasSYS to run under guise of the
System account, this could allow you to interact with the running
application but I haven't actually tested this.

I just tried this and even when running under the system account I could
not interact with the running process started via the startup script.
Reply With Quote
  #10  
Old 06-01-2010
Dave Bell
 
Posts: n/a
Re: How to start a program at boot up?

No need to interact with the application once it's running.
There is no console activity (except for some unlikely failure reports), and
any "expected" problems or verbose messages get logged to a text file.

However, I have run into a problem installing the two applications:
Apparently, only the first one added to the Group Policy runs on startup.
Checking processes in Task Manager, I only see the first one.
That one later encountered a network error and stopped.
When I looked in Task Manager again, I saw the second one running.
Looks like they are serial, not concurrent.
Reply With Quote
  #11  
Old 06-01-2010
John John - MVP
 
Posts: n/a
Re: How to start a program at boot up?

I would try it with two separate batch files. If need be use the /wait
switch with the start command:

start "" /wait "C:\Program Files\Program Folder\Program.exe"
Reply With Quote
  #12  
Old 07-01-2010
Dave Bell
 
Posts: n/a
Re: How to start a program at boot up?

Well, I've tried several combinations of single and multiple batch files,
with and without the /wait.
Best I've gotten is the first of two batch files launches its .exe, and the
second never starts up.
Incidentally, the DOS shell window for the one running application
displays, floating over the Windows logon screen.
Logging in (at least, using Remote Desktop) does not terminate the
application.

One solution may be to start a single applicatin, which in turn spawns two
child processes, without wait.

Maybe installing as services is the better answer. I'll look into that
further...
Reply With Quote
  #13  
Old 07-01-2010
David H. Lipman
 
Posts: n/a
Re: How to start a program at boot up?

That's what I was thinking, if it isn't a fully installed application, run it as a NT
Service.

http://support.microsoft.com/kb/251192
Reply With Quote
Reply

  TechArena Community > Technical Support > Computer Help > Windows XP > Windows XP Support


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to start a program at boot up?"
Thread Thread Starter Forum Replies Last Post
When I start a program, nothing happens [URGENT!] Espz Windows Software 3 14-12-2009 12:58 AM
The following boot-start or system-start driver(s) failed to load: PxHelp20 Jasonholt Hardware Peripherals 3 23-07-2009 12:11 AM
The following boot-start or system-start driver(s) failed to load: ccdevice Kingfisher Operating Systems 3 21-07-2009 06:23 PM
How to prevent a program from start stinger Windows Software 3 10-12-2008 05:07 PM
Add Start-up program Mellowed Vista Help 8 10-11-2007 07:53 PM


All times are GMT +5.5. The time now is 02:51 AM.