AutID Posted January 17, 2014 Share Posted January 17, 2014 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. https://iblockify.wordpress.com/ Link to comment Share on other sites More sharing options...
michaelslamet Posted January 17, 2014 Share Posted January 17, 2014 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 Link to comment Share on other sites More sharing options...
AutID Posted January 17, 2014 Author Share Posted January 17, 2014 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 https://iblockify.wordpress.com/ Link to comment Share on other sites More sharing options...
Bert Posted January 17, 2014 Share Posted January 17, 2014 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. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
AdamUL Posted January 17, 2014 Share Posted January 17, 2014 Have a look at guinness' >Statup UDF. Adam Link to comment Share on other sites More sharing options...
Starstar Posted January 17, 2014 Share Posted January 17, 2014 Try this..... FileCreateShortcut(@DesktopDir & "\Program.exe", @StartupDir & "\Program.lnk") and this FileCreateShortcut(@DesktopCommonDir & "\Program.exe", @StartupCommonDir & "\Program.lnk") Life is like a coin. You can spend it Anyway as you wish and for your kind information. "you can spend it only once." 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