Jump to content
Sign in to follow this  
SoyArcano

Rename regedit key with autoit

Recommended Posts

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 by SoyArcano

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

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.

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...