SoyArcano Posted March 25, 2017 Posted March 25, 2017 (edited) Hello i am trying to rename one of my keys because it's very annoying to create a new rule sometimes i do to avoid do manually all the time i want to start a program in my pc. Normally i can create it with regwrite.. but now i was trying read the key: RegRead("The key") And now i want to replace the name . Now the name is ("the key was renamed") Is possible? bye! Edited March 25, 2017 by SoyArcano
Developers Jos Posted March 25, 2017 Developers Posted March 25, 2017 Did you find a Registry rename function in the helpfile? Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Developers Jos Posted March 25, 2017 Developers Posted March 25, 2017 So guess there is no rename function, but maybe RegRead() and RegWrite allows you to copy it? JOs SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
SoyArcano Posted March 25, 2017 Author Posted March 25, 2017 So i must to copy not possible rename it
Developers Jos Posted March 25, 2017 Developers Posted March 25, 2017 What is the problem with copying? What about you be a little clearer what you really want to do as I am totally lost why one would want to mess with renaming Registry keys with a script. So do us all a favor and explain exactly what you want in stead of this vague story in your initial post! Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
SoyArcano Posted March 25, 2017 Author Posted March 25, 2017 Nothing only that with c++ i can rename it using regrenamekey. In autoit i must to copy it
Moderators JLogan3o13 Posted March 27, 2017 Moderators Posted March 27, 2017 You are not going to be able to rename without a copy through AutoIt natively, but you can use it to call PowerShell: ShellExecute("powershell", 'Rename-Item -Path "HKCU:\MyKey1" -NewName "MyKey2"') "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
SoyArcano Posted March 27, 2017 Author Posted March 27, 2017 a ok so it's renaming i saw a lot of examples but all of them at last copy the tree of keys and then move it. But i think this method you are really renaming the name. i asked because in my case copying all the content of one key is innecesary when you only need to rename it.
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