=sinister= Posted May 23, 2008 Share Posted May 23, 2008 (edited) As title says, is it possible to run a program when windows starts (Well I know it's possible, but how?) Another quick question, how do I make a script run a function when the program as a command on the end of the path? (Like "C:\test.exe" -run) Edited May 23, 2008 by =sinister= Link to comment Share on other sites More sharing options...
felanor Posted May 23, 2008 Share Posted May 23, 2008 As title says, is it possible to run a program when windows starts (Well I know it's possible, but how?) Another quick question, how do I make a script run a function when the program as a command on the end of the path? (Like "C:\test.exe" -run) There are a couple of ways to get a program to run on startup. You could add the executable to the registry (HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run) and add the exe as a new string value. You could also add the file to your startup directory. As far as getting the switch to the end of the path, you could try something like this. Run ("C:\test.exe -run") Let me know if that helps, ~Felanor Check Out My ScriptsFile Property Management - Adjust a file's title, author, subject, etc. Link to comment Share on other sites More sharing options...
rasim Posted May 23, 2008 Share Posted May 23, 2008 =sinister=1. HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run2. Help Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now