Jump to content

Run program when cpu starts up


AutID
 Share

Recommended Posts

Hello,
 

So as the tittle says i want my script to run when cpu starts up.
I have never done this before so i dont know much about this.
I tried these two:

RegWrite("HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun", @ScriptName, "REG_SZ", @DesktopDir & "myScript.exe")
RegWrite("HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionGroup PolicyScriptsStartup", @ScriptName, "REG_SZ", @DesktopDir & "myScript.exe")

but none works.
 

I have never used RegWrite before. So some good tips would be greatly appreciated.

Cheers.

 

Link to comment
Share on other sites

Is it important to have the app run BEFORE you log into windows or you just want it to run once you get to the desktop automatically? If it is when you get to the desktop, just use the startup folder. Not sure about Windows 8 but I know on 7 and earlier it applies.

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...