korasoglu Posted November 29, 2011 Share Posted November 29, 2011 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.(-).. Quote Link to comment Share on other sites More sharing options...
MostWanted Posted November 29, 2011 Share Posted November 29, 2011 String.Replace(Input.GetText("Input1"), "\\", "\\\\") Bununla tek \ , çift \\ yapabilirsin ama inan diğer dediklerini anlamadım. Quote Link to comment Share on other sites More sharing options...
NotToday Posted November 29, 2011 Share Posted November 29, 2011 (edited) 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 November 29, 2011 by ReaLyMaN Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.