Jump to content

Input - Reg Kaydetme


korasoglu
 Share

Recommended Posts

Arkadaşlar Inputtaki bir değeri C:\Users\hp\Desktop\xxx.exe Şu şekilde nasıl kaydedebiliriz C:\\Users\\hp\\Desktop\\xxx.exe
diyelimki elimizde bir reg var bunu çalışmaya nasıl alırız.
örnek

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\asd]
"MUIVerb"="asd"
"SubCommands"="InstWinBoos"
"Icon"="C:\\Users\\hp\Desktop\\xxx.exe" devam ediyor

open veya ..url gibi çalıştırabiliriz tamam fakat kullanıcı farketmeden nasıl ekliyebiliriz veya kaydı çalışmanın içine nasıl alabiliriz istendiği zamanda eklenen anahtarı nasıl silebiliriz.(-)..
Link to comment
Share on other sites

Yanlış anlamadıysam inputtaki değeri 3.anahtarda veri olarak kullanmak istiyorsunuz.Bunun için ilk önce inputtaki değeri alıp tanımlamalısınız.


[quote]sHedef = Input.GetText("Input1");
sHedef = String.Replace(sHedef,"\\","\\\\", false)----\ yerine \\ yazar
Registry.SetValue(HKEY_CLASSES_ROOT, "Directory\\Background\\shell\\asd", "MUIVerb", "asd", REG_SZ);
Registry.SetValue(HKEY_CLASSES_ROOT, "Directory\\Background\\shell\\asd", "SubCommands", "InstWinBoos", REG_SZ);
Registry.SetValue(HKEY_CLASSES_ROOT, "Directory\\Background\\shell\\asd", "Icon",sHedef, REG_SZ);[/quote]

Anahtarı da
[quote]Registry.DeleteKey(HKEY_LOCAL_MACHINE, "Software\\My Application");[/quote]

Edited by ReaLyMaN
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...