I need to configure command button (visual studio 2010) to run below DOS commands
I have 2 command buttons in the GUI
Once I click the command button 1 it should ping & tracert for 2 IP addresses store the result in a text file in D drive.
For the command button 2, it should run the same but for two different IPs. Also I need to configure progress bar for the two buttons. While executing the commands CMD window should not open. I used below but no result...Please advice
Shell("cmd.exe /c ping xx.xx.xx.xx >> d:\x_stat.txt/")
Shell("cmd.exe /c tracert xx.xx.xx.xx >> d:\x_stat.txt/")
Shell("cmd.exe /c ping yy.yy.yy.yy >> d:\x_stat.txt/")
Shell("cmd.exe /c tracert yy.yy.yy.yy >> d:\x_stat.txt/")
I have 2 command buttons in the GUI
Once I click the command button 1 it should ping & tracert for 2 IP addresses store the result in a text file in D drive.
For the command button 2, it should run the same but for two different IPs. Also I need to configure progress bar for the two buttons. While executing the commands CMD window should not open. I used below but no result...Please advice
Shell("cmd.exe /c ping xx.xx.xx.xx >> d:\x_stat.txt/")
Shell("cmd.exe /c tracert xx.xx.xx.xx >> d:\x_stat.txt/")
Shell("cmd.exe /c ping yy.yy.yy.yy >> d:\x_stat.txt/")
Shell("cmd.exe /c tracert yy.yy.yy.yy >> d:\x_stat.txt/")