»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 02-23-2004, 09:02 AM   #1 (permalink)
Registered User
 
Join Date: Jun 2003
Posts: 11
Than is on a distinguished road
Ping batch file

I created a simple batch file to ping a particular server. The instructions simply are

ping -t 10.80.0.247

it works great on my work pc but on my laptop and home pc it wont . Everytime I launch it, I get c:\ ping 10.80.0.247 scrolling many times until I close the window. The actual command doesnt run, just the text scrolls. Tried without the -t and same results. I can run from command prompt and works great. Any suggestions?

Than is offline   Reply With Quote
Old 02-23-2004, 09:13 AM   #2 (permalink)
Registered User
 
DVNT1's Avatar
 
Join Date: Oct 2001
Location: Ohio
Posts: 5,577
DVNT1 is on a distinguished road
try ping 10.80.0.247 -t

Are there different OSes involved?
DVNT1 is offline   Reply With Quote
Old 02-23-2004, 09:19 AM   #3 (permalink)
Registered User
 
Join Date: Jun 2003
Posts: 11
Than is on a distinguished road
OS is XP Pro on all 3 machines. problem the same where ever I place the -t. Even without the -t same problem.
Than is offline   Reply With Quote
Old 02-23-2004, 09:22 AM   #4 (permalink)
Registered User
 
DVNT1's Avatar
 
Join Date: Oct 2001
Location: Ohio
Posts: 5,577
DVNT1 is on a distinguished road
I can reproduce that problem if there isn't a network cable attached.

As a side note, are there any software firewalls involved?
DVNT1 is offline   Reply With Quote
Old 02-23-2004, 09:25 AM   #5 (permalink)
Registered User
 
Join Date: Jun 2003
Posts: 11
Than is on a distinguished road
This is on a 2000 domain with a hardware firewall on the domain but the server I am trying to ping is on the inside anyway.

This happens reguardless what site or ip I try to ping using the batch file.
Than is offline   Reply With Quote
Old 02-23-2004, 07:52 PM   #6 (permalink)
Registered User
 
Join Date: Jun 2003
Posts: 11
Than is on a distinguished road
It was suggested to me by a friend that I should put the batch file in the root directory and run it from there but that also didnt make a difference.

Anyone have any other suggestions?
Than is offline   Reply With Quote
Old 02-23-2004, 09:29 PM   #7 (permalink)
Registered User
 
OuTpaTienT's Avatar
 
Join Date: Oct 2001
Location: Bay Area, CA USA
Posts: 6,966
OuTpaTienT is on a distinguished road
Send a message via ICQ to OuTpaTienT
Ah ha! I think I figured this out. What are you naming your batch file? It's not PING.BAT is it? I bet it is.

You can either change the contents of the file to read

ping.exe -t 10.80.0.247

However simply having a file named Ping might cause you other troubles later on. Best solution is to rename the batch to something else, like PINGER.BAT or whatever. And then make sure there is no PING.BAT left behind.

After that it should work fine.
OuTpaTienT is offline   Reply With Quote
Old 02-23-2004, 09:48 PM   #8 (permalink)
Registered User
 
eagle1's Avatar
 
Join Date: Oct 2001
Location: La Isla del Encanto
Posts: 4,125
eagle1 is on a distinguished road
lol ...
OuT said PINGER ...

Over here, that could mean something nasty!! :P


But that's probably the problem if it is written that way. Ping is calling himself.
__________________
boo!
eagle1 is offline   Reply With Quote
Old 02-23-2004, 10:07 PM   #9 (permalink)
Registered User
 
OuTpaTienT's Avatar
 
Join Date: Oct 2001
Location: Bay Area, CA USA
Posts: 6,966
OuTpaTienT is on a distinguished road
Send a message via ICQ to OuTpaTienT
Hey eagle1. AMEN to your title. Don't even get me started.

If pinger is a bad word then of course you could use something else...PINGMAN.BAT, PINGPONG.BAT, or the ever-popular, PINGALINGADINGDONG.BAT.

OuTpaTienT is offline   Reply With Quote
Old 02-24-2004, 07:10 AM   #10 (permalink)
Registered User
 
Join Date: Jun 2003
Posts: 11
Than is on a distinguished road
ping.exe in the batch file was the fix.

Having the name as ping.bat or whatever..bat didnt seem to make a difference.

You guys rock. Thanks for your help.
Than is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 07:38 PM.