Jump to content

Ams Ile Regeditte "anahtar" Ismi Değiştirme?


nightmare3519
 Share

Recommended Posts


 

Registry.SetValue(HKEY_LOCAL_MACHINE, "Software\\Macromedia\\FlashPlayer", "CurrentVersion", "12,00,11,25", REG_SZ)

 

icsCw2R.png

 

Abi ben yanlış söyledim galiba 

 

Setvalue kodunu biliyorum benim istediğim mesela oradaki FlashPlayer anahtarının adını değiştirmek istiyorum içindeki değerleri değil

Link to comment
Share on other sites

  • Editor

REG COPY HKLM\SOFTWARE\OLD HKLM\SOFTWARE\NEW   bu şekilde OLD isimli key i NEW isminde yeniden kopyaladık.

REG DELETE HKLM\SOFTWARE\OLD /F  bu komutlada eskisini sildik.

 

bu şekilde ams ile cmdyi çalıştırıp yada bir bat dosyasına yazdırıp çalıştırdıgında istediğin değişikliği yapabilirsin.Pluginsiz olarak en son bu geldi aklıma

Link to comment
Share on other sites

İndigorose forumunda araştırırken güzel bir örnek buldum :

 

 

 

oldRegKey = "HKLM\\MyPath\\OldKeyName"
newRegKey = "HKLM\\MyPath\\NewKeyName"

result = File.Run("Reg Copy "..oldRegKey.." "..newRegKey.." /s", "", "", SW_MINIMIZE, true);

Registry.DeleteKey(HKEY_LOCAL_MACHINE, oldRegKey);

Tabi bu şekilde olmaz çünkü oldregkey değişkeni HKLM verisinde aldığı için anahtar silinmez ancak

 

 

 

oldRegKey = "HKLM\\MyPath\\OldKeyName"
newRegKey = "HKLM\\MyPath\\NewKeyName"

result = File.Run("Reg Copy "..oldRegKey.." "..newRegKey.." /s", "", "", SW_MINIMIZE, true);



sil = String.Replace(oldRegKey,"HKLM\\","",false)

Registry.DeleteKey(HKEY_LOCAL_MACHINE, sil);

Yaparsanız yenisini kopyalar ardından eskisini siler.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...