SoyArcano

Rename regedit key with autoit

9 posts in this topic

#1 ·  Posted (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 by SoyArcano

Share this post


Link to post
Share on other sites



#3 ·  Posted

I was finding but i didnt find nothing 

Share this post


Link to post
Share on other sites

#5 ·  Posted

So i must to copy  not possible rename it

Share this post


Link to post
Share on other sites

#6 ·  Posted

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


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#7 ·  Posted

Nothing only that with c++ i can rename it using regrenamekey. In autoit i must to copy it

Share this post


Link to post
Share on other sites

#8 ·  Posted

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"')

 


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

#9 ·  Posted

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