• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1451
  • Last Modified:

How to start a program automatically after reboot in XP pro?

Hi,
I want my program to start automatically after reboot.

In XP home I set the registery key in HKEY_LOCAL_MACHINE->WINDOWS->SOFTWARE->CurrentVersion->RUN

How do I do it in XP pro?
Thanks
0
star90
Asked:
star90
  • 3
  • 3
  • 2
  • +2
1 Solution
 
lemonvilleCommented:
A very easy method is to Drag into the startup items on your start menu.
0
 
scuzzoCommented:
[Start] [Run] [Regedit]
Registry Key: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
Modify/Create the Value Data Type(s) and Value Name(s) as detailed below.
Data Type: REG_SZ [String Value] // Value Name: [Enter the Name of Program Executable]
Value Data: [Enter the Path to the Program Executable]
Exit Registry and Reboot
0
 
stehardy88Commented:
Windows XP Pro is: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run

lemonville is also correct in adding Startup folder (in all users if necessary)

stehardy88
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
oswaldofarithCommented:
lemonville is right, that is an easy and fast method, but if you want to use the registry, the paths are:

For all users:
HKEY_LOCAL_MACHINE/SOFTWAREMicrosft/Windows/CurrentVersion/RUN

For current user:
HKEY_CURRENT_USER/SOFTWAREMicrosft/Windows/CurrentVersion/RUN
0
 
oswaldofarithCommented:

I'm sorry, I misspelled, correct paths in the XP Pro registry

For all users:
HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/RUN

For current user:
HKEY_CURRENT_USER/SOFTWARE/Microsoft/Windows/CurrentVersion/RUN
0
 
star90Author Commented:
Thanks lemonville,
I need to add somthing like:
c:\project\myprogram.exe start.ini

start.ini is a configuration file.

I tried to do it with the shortcut of Windows in the dir that you specified but Windows only excepts
the myprogram.exe and doesn't except the start.ini  extension, it claims it can't find the file.
Thanks.
0
 
lemonvilleCommented:
Strange, i've had that working before.

Can you create the shortcut on the desktop, add the ini, and test it out to make sure its working. Then move it to the folder (C:\Documents and Settings\All Users\Start Menu\Programs\Startup)

Just checking all ends.
0
 
star90Author Commented:
Hi lemonville
By the way if I try to set a shortcut to rasdial that isa program  in Windows/system32 then I get different options inside the configuration window of the shortcut and I am able to set rasdial.exe parameter1 parameter2
0
 
star90Author Commented:
Hi oswaldofarith
Thanks for your answer it worked.
I want to know if there is a way that 2 programs will start one after the other (after reboot)
giving the first one a delay (for example 15 seconds)
Thanks
0
 
oswaldofarithCommented:
Thanks for the points, I think that the answers of the other guys were right too. Windows XP doesn't have a sleep command (or wait or delay), but you can find  a sleep.exe in Windows Server 2003 Resource Kit Tools. If you don't want to download it, you can implement something like that using a trick. It is explained at http://malektips.com/dos0017.html

I hope it helps you. Regards
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 3
  • 3
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now