IntelliJ Java IDE
The moose likes General Computing and the fly likes Adding an exe to startup Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » General Computing
Reply Bookmark "Adding an exe to startup" Watch "Adding an exe to startup" New topic
Author

Adding an exe to startup

girish rateshwar
Ranch Hand

Joined: Mar 04, 2001
Posts: 97
Dear all,
I have an application in c++ to calculate the disk space allocated to each user in policy. This application should automatically startup with windows.
Is there any means (i.e by using a batch file while installing this application) by way of which i can get this exe in the startup folder.
I guess i need to modify the registry :roll:


Girish
Anupam Sinha
Ranch Hand

Joined: Apr 13, 2003
Posts: 1088
If you insert this value the application will run every time.
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
Create a new sting value and name it as you wish. Add the path of the location in the value of that string.
If you wish to do it in a multi user enviornment then you would have to use a bit different string.
I guess that is under the HKEY_CURRENT_USER instead of HKEY_LOCAL_MACHINE. Just a guess not sure though.
Or you can simply add that file in startup folder.
C:\WINDOWS\Start Menu\Programs\StartUp
 
 
subject: Adding an exe to startup
 
Threads others viewed
running a java program
program running problem
How to run Excel from a java app?
Running an external application inside a Panel
.exe in Java
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture