Sign in to follow this  
Followers 0
AutID

Run program when cpu starts up

6 posts in this topic

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.

 

Share this post


Link to post
Share on other sites



Hi,

Run gpedit.msc

Browse to Windows Settings and then Scripts (Logon/Logoff).

You can start from there and investigate where it store to the registry exactly.

If you found it, let me know, I would like to know that also :)

Share this post


Link to post
Share on other sites

Hi,

Run gpedit.msc

Browse to Windows Settings and then Scripts (Logon/Logoff).

You can start from there and investigate where it store to the registry exactly.

If you found it, let me know, I would like to know that also :)

I found it, it is the second regwrite

Share this post


Link to post
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.

Share this post


Link to post
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
Sign in to follow this  
Followers 0