radyofon Posted July 9, 2012 Share Posted July 9, 2012 Windows Güvenlik duvarını açmak ve kapatmak için File.Run komutu ile bat dosyasını çalıştırıyorum. bat dosyasını çalıştırmak yerine cmd modunda uygulanan bu komutları direk AMS ile nasıl yazabilirim? Bat dosyası: netsh advfirewall set allprofile state on -----(win7 için) Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted July 10, 2012 Editor Share Posted July 10, 2012 File.Run("cmd.exe","/C netsh advfirewall set allprofile state on"); Quote Link to comment Share on other sites More sharing options...
HalilYanar Posted July 11, 2012 Share Posted July 11, 2012 Not defterine kaydedip isminin yanına .cmd yazarsanda olur. Quote Link to comment Share on other sites More sharing options...
radyofon Posted July 11, 2012 Author Share Posted July 11, 2012 @HalilYanar Ben zaten ayrı bir dosya kullanmamak istiyorum. bat dosyası ile cmd dosyası arasında fark yok bence. Direk olarak komut çalıştırmak istiyorum, herhangi bir dosya değil. Yine de teşekkürler. @pairs cevabı vermiş teşekkür ederim. Quote Link to comment Share on other sites More sharing options...
byhabit Posted September 2, 2013 Share Posted September 2, 2013 bu komut win 8 dede çalışırmı deneyen varmı? benim şu an deneme imkanım yok. Quote Link to comment Share on other sites More sharing options...
reyiz Posted September 2, 2013 Share Posted September 2, 2013 Çalışıyor. Quote Link to comment Share on other sites More sharing options...
byhabit Posted September 2, 2013 Share Posted September 2, 2013 (edited) Teşekkür ederim. Bir şey daha Sorucam Windows 8 de uac denetimini kapatamadım ams de komutla olmuyormu acaba? Edited September 2, 2013 by byhabit Quote Link to comment Share on other sites More sharing options...
byhabit Posted September 2, 2013 Share Posted September 2, 2013 Şöyle Bir komut buldum Win7 32 ve 64 bitte çalışıyor, Fakat Win8 de deniyemiyorum Deniyebilecek biri olursa sevinirim Komut: Registry.SetValue(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System", "EnableLUA", "00000000", REG_DWORD); Quote Link to comment Share on other sites More sharing options...
reyiz Posted September 2, 2013 Share Posted September 2, 2013 Niye UAC'ı pasif yapmaya çalışıyorsunuz? Quote Link to comment Share on other sites More sharing options...
byhabit Posted September 2, 2013 Share Posted September 2, 2013 windows kurulduktan sonra windowsa bileşen eklemek için ve katılımsız kurulumlar için. uac açıkken yapamıyorum ve güvenlik duvarıda engelliyor bunları tek tıkla halletmeye çalışıyorum işlerimi hızlandırmak için. Quote Link to comment Share on other sites More sharing options...
reyiz Posted September 2, 2013 Share Posted September 2, 2013 http://www.tnctr.com/topic/218340-windows-uac-tam-denetim-sorunu/ Quote Link to comment Share on other sites More sharing options...
byhabit Posted September 2, 2013 Share Posted September 2, 2013 İşlemler bitince Tekrar açıyorum merak etme Quote Link to comment Share on other sites More sharing options...
reyiz Posted September 2, 2013 Share Posted September 2, 2013 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce Bu anahtar altına, masaüstü geldikten sonra UAC uyarısı çıkmadan bir seferliğine çalışacak programların ismini yazabilirsiniz. UAC'ı kapatmanıza gerek yok. Quote Link to comment Share on other sites More sharing options...
kalelibilişim Posted September 3, 2013 Share Posted September 3, 2013 @ reyiz örnek verebilir misiniz? Quote Link to comment Share on other sites More sharing options...
reyiz Posted September 3, 2013 Share Posted September 3, 2013 Quote Link to comment Share on other sites More sharing options...
kalelibilişim Posted September 3, 2013 Share Posted September 3, 2013 (edited) Daha önce de "D:\TOOLS\BOOTICE.exe" programını uac ye takılmadan çalıştırmayı konuşmuştuk. Bu yöntemle çalıştırılabilir mi? (cmd dosyasından) Edited September 3, 2013 by kalelibilişim Quote Link to comment Share on other sites More sharing options...
reyiz Posted September 3, 2013 Share Posted September 3, 2013 (edited) cmd dosyasının yolunu o anahtara kayıt ettirmen gerekiyor. İşe yarar. Edited September 3, 2013 by reyiz Quote Link to comment Share on other sites More sharing options...
kalelibilişim Posted September 3, 2013 Share Posted September 3, 2013 Böyle mi? Quote Link to comment Share on other sites More sharing options...
reyiz Posted September 3, 2013 Share Posted September 3, 2013 Evet. Oturumu açıp kapattıktan sonra o dosya bir seferliğine çalışacaktır. Çalıştıktan sonra o değer otomatik silinecektir. 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.