Jump to content

Run program when windows starts?


Recommended Posts

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 by =sinister=
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...