Ping problem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello.
I'm trying to automate a ping command. For that i've built a .bat file with
the command.
The problem i'm having that if i don't use the full path of ping
(C:\windows\system32\) before the ping command, i can only execute this file
if i put it on the Documents and Settings folder.

On another computer i have, i can use this .bat file from any folder.

Why does this happen?

Thanks

Luis
 
Use path command to add c:\windows\system32 or copy ping.exe to a folder has been added to path.

Bob Lin, MS-MVP, MCSE & CNE
Networking, Internet, Routing, VPN Troubleshooting on http://www.ChicagoTech.net
How to Setup Windows, Network, VPN & Remote Access on http://www.HowToNetworking.com
Hello.
I'm trying to automate a ping command. For that i've built a .bat file with
the command.
The problem i'm having that if i don't use the full path of ping
(C:\windows\system32\) before the ping command, i can only execute this file
if i put it on the Documents and Settings folder.

On another computer i have, i can use this .bat file from any folder.

Why does this happen?

Thanks

Luis
 
Hello.
I'm trying to automate a ping command. For that i've built a .bat file with
the command.
The problem i'm having that if i don't use the full path of ping
(C:\windows\system32\) before the ping command, i can only execute this file
if i put it on the Documents and Settings folder.

On another computer i have, i can use this .bat file from any folder.

Why does this happen?

Thanks

Luis

Luis,

What's the Path value on the two computers?
<http://nitecruzr.blogspot.com/2005/05/using-path-and-making-custom-program.html>
http://nitecruzr.blogspot.com/2005/05/using-path-and-making-custom-program.html
 
Back
Top