Hi all, Trying to make a simple batch file that will ping a computer, and display the results. So far I have
@Echo off
Echo Test if 192.168.2.1 is available
Ping -n 1 192.168.2.1
@Pause
Exit
It is saved in a file called Ping.bat. If i run the file, it displays ‘Test if 192.168.2.1 is available’ then just sits there.
But if I open up command prompt and then run the file through it, it works perfectly!
Any suggestions of what could be wrong?