Digsy Posted January 8, 2009 Share Posted January 8, 2009 I have a bit of software which is on *ahem* "permanent trial". Keeping it in this state means that every so often I have to make a small tweak to the registry, which is a bit fiddly. There is a key under HKEY_CLASSES_ROOT that needs deleting if it is present. I was wondering if there was a way to write a simple script file which made the change every time Windows starts up or shuts down, to save me having to? I already have a backup script run on shutdown, so I know how to tell Windows to schedule it. I just don't know the script syntax for changing the registry. Link to comment Share on other sites More sharing options...
Thorin Posted January 8, 2009 Share Posted January 8, 2009 Export the relevant registry key to a .reg file, then run "regedit /s regfile.reg", that will re-import the registry key from the file. Link to comment Share on other sites More sharing options...
Mike Posted January 8, 2009 Share Posted January 8, 2009 Can you not export the registry settings and then add the export file to your 'start up'..? I think you'll have to click 'OK' when it updates the reg, but probs better than manually doing it? My simplistic solution anyway... I'm sure some of the JustGav/Carl0s style boffins will be along in a minute Link to comment Share on other sites More sharing options...
Mike Posted January 8, 2009 Share Posted January 8, 2009 Export the relevant registry key to a .reg file, then run "regedit /s regfile.reg", that will re-import the registry key from the file. or that guy Link to comment Share on other sites More sharing options...
Digsy Posted January 8, 2009 Author Share Posted January 8, 2009 Cheers guys. I actually got off my backside and did a Google search. Its actually a load easier than I thought it would be. The command is: reg delete hkcr\ To make it run silently, this becomes: @echo y| reg delete hkcr\ I have added it the the shutdown scripts under group policies. Job done! Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now