Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ping batch help

Status
Not open for further replies.

NewToo

Technical User
Jun 11, 2001
136
0
0
Hello,

I wrote a very smiple batch to ping my sever from a PC on my network. For some reason when i run the batch it does export my result to a text file. But when i manaully input the commands in dos it worked file.

Below is the command:

ping -n 10 192.168.1.1 > pingtest.txt


Thanks
 
check the dir from where you have run this command.
if you can't specify the path bydefault it will save on the current location from where you run the command.
Otherwise you specily the location.
 
Thanks guys i resolve it. it's not the dir, the dir goes what is your home dir.

I have to put

ping.exe -n 10 192.168.1.1 > pingtest.txt


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top