windows - .bat file executing itself over and over -
i wrote ping google.fr -n 2500 in .txt file, saved "ping.bat". when execute script, can see command execut itselfs on , over, if loop. ofc didn't wrote loop in txt file. got solution?
(check picture more details) normal expected behave of command :http://prntscr.com/cl2z44 actual behave : image of problem
preferably, save script using name. otherwise, ping google.fr -n 2500
execute (ping.bat
) in current directory rather searching ping.exe
in path
variable. proof, try where ping
.
another approach (nonpreferable): keep ping.bat
name specify ping.exe google.fr -n 2500
inside bat script.
Comments
Post a Comment