kaan_karabey Posted January 14, 2014 Share Posted January 14, 2014 (edited) Arkadaşlar ben iş yeri için bir program yazmak istiyorum yapmak istediğim şu alt taki resimdekini yapmak olacak ama nasıl yapacağım bilmiyorum??? yani cmd ekranı ping yazacak benim ip girmemi bekleyecek bunu nasıl yapabilirim??? [spoiler] [/spoiler] Edited January 14, 2014 by kaan_karabey Quote Link to comment Share on other sites More sharing options...
mogokce Posted January 14, 2014 Share Posted January 14, 2014 şu siteden ping göndertsen olur mu? http://tools.pingdom.com/ping/ Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted January 15, 2014 Editor Share Posted January 15, 2014 File.Run("cmd.exe","/C Ping"); şeklinde kullana bilirsiniz. Quote Link to comment Share on other sites More sharing options...
kaan_karabey Posted January 15, 2014 Author Share Posted January 15, 2014 (edited) File.Run("cmd.exe","/C Ping"); şeklinde kullana bilirsiniz. bu verdiğiniz kod benim dediğim gibi çalışmadı Edited January 15, 2014 by kaan_karabey Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted January 15, 2014 Editor Share Posted January 15, 2014 CMD yi açıp IP girmeni istesin dedin o yüzden öyle kod kullandım. Quote Link to comment Share on other sites More sharing options...
kaan_karabey Posted January 15, 2014 Author Share Posted January 15, 2014 CMD yi açıp IP girmeni istesin dedin o yüzden öyle kod kullandım. bastığımda butona girmeme izin veriyor cmd hemen kapanıyor Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted January 15, 2014 Editor Share Posted January 15, 2014 O zaman kullanıcıya bir dilaog Açtırıp IP adresi girmesini istersin önce o şekilde olur.Çünkü cmd o ekranda bekleyip kalmaz Quote Link to comment Share on other sites More sharing options...
kaan_karabey Posted January 15, 2014 Author Share Posted January 15, 2014 O zaman kullanıcıya bir dilaog Açtırıp IP adresi girmesini istersin önce o şekilde olur.Çünkü cmd o ekranda bekleyip kalmaz örnek hazırlarmısın sana zahmet Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted January 15, 2014 Editor Share Posted January 15, 2014 Dialog.İnput ile kullanıcıdan veri girmesini iste sonra cmd ye aktar. Quote Link to comment Share on other sites More sharing options...
kaan_karabey Posted January 15, 2014 Author Share Posted January 15, 2014 Dialog.İnput ile kullanıcıdan veri girmesini iste sonra cmd ye aktar. yardımcı olabilirmisin bana Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted January 15, 2014 Editor Share Posted January 15, 2014 (edited) sIP = Dialog.Input("IP Giriniz", "IP Adresi :", "", MB_ICONQUESTION); result = File.Run("cmd.exe", "/C ping "..sIP .. " -t", "", SW_SHOWNORMAL, false); Edited January 15, 2014 by pairs Quote Link to comment Share on other sites More sharing options...
kaan_karabey Posted January 15, 2014 Author Share Posted January 15, 2014 (edited) sIP = Dialog.Input("IP Giriniz", "IP Adresi :", "", MB_ICONQUESTION); result = File.Run("cmd.exe", "/C ping "..sIP .. " -t", "", SW_SHOWNORMAL, false); .... Edited January 15, 2014 by kaan_karabey 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.