@ping behavior change

Jul 1, 2008
81
0
74
Montreal
After updating to v13.01.029, @ping started giving me "incorrect parameter" errors this morning, from a btm file that has been running well for years. The command is
Code:
set var=%@ping[192.168.1.21,1,64]
After some fussing around, I discovered that the timeout argument is the culprit. If I leave it out
Code:
set var=%@ping[192.168.1.21,,64]
, the function works, and surprise, if I put it between double quotes
Code:
set var=%@ping[192.168.1.21,"1",64]
it also works but if the target doesn't respond, the function waits well past the specified 1-second timeout.
--
Peter
 
May 20, 2008
11,400
99
Syracuse, NY, USA
It seems to work correctly with timeouts greater than 11 (but 11 seconds is
quite a while to wait for a ping response).

On Mon, 14 Nov 2011 11:51:05 -0500, Peter Bratton <> wrote:

|After updating to v13.01.029, @ping started giving me "incorrect parameter" errors this morning, from a btm file that has been running well for years. The command is
|Code:
|---------
|set var=%@ping[192.168.1.21,1,64]
|---------
| After some fussing around, I discovered that the timeout argument is the culprit. If I leave it out
|Code:
|---------
|set var=%@ping[192.168.1.21,,64]
|---------
|, the function works, and surprise, if I put it between double quotes
|Code:
|---------
|set var=%@ping[192.168.1.21,"1",64]
|---------
| it also works but if the target doesn't respond, the function waits well past the specified 1-second timeout.
 
Jul 1, 2008
81
0
74
Montreal
It seems to work correctly with timeouts greater than 11 (but 11 seconds is quite a while to wait for a ping response).
Indeed, that pretty much defeats the purpose of the timeout argument.
The function works if the timeout argument is 0, but it waits the default 5 seconds anyway.
--
Peter
 
Similar threads
Thread starter Title Forum Replies Date
M @PING or @IPADDRESS for hosts with only IPv6 addresses Support 15
N ping DNS lookup not working Support 1
noahcoad WAD @ping throws unavoidable error Support 4
T @ping: response code, data size and documentation incorrect Support 2
H @XMLNODES - New behavior? Support 3
Jesse Heines Strange Line Wrapping Behavior Support 14
H Behavior change re piping a string to a Java program Support 1
Jay Sage Baffling Behavior With TPIPE Support 5
D Pasting Unicode data has different behavior on TCC and CMD Support 2
P "Set" command behavior - a bug? Support 3
P LOG command behavior Support 3
I Puzzling Behavior of TDRV and DEL Support 2
N Fixed Strange dir behavior Support 6
A Inconsistent @WINPOS // ACTIVATE /POS= behavior Support 0
P Strange mouse behavior with list Support 2
R Find in screen buffer - find next behavior Support 0
D v20 code page behavior changes Support 2
D Strange DO behavior with /O Support 5
Jay Sage Change in Behavior of Activate Command Support 4
deleyd Fixed Behavior different than CMD Support 1
jwiede Difference in "FOR /F" behavior (?) Support 1
R Difference in behavior of RMDIR vs. CMD.EXE? Support 5
D Fixed Change in behavior of variable expansion between 16 and 17 Support 3
D Unexpected behavior Support 8
D Bash-like Esc->Backspace behavior Support 4
C ZIP behavior Support 5
Charles Dye Odd behavior after using OPTION "Advanced" tab Support 2
C odd behavior of "dir" Support 0
M How to? Work around an unexpected and very inconvenient behavior of TCC... Support 26
A expected behavior of move /sx Support 14
M WAD A complaint regarding a very irritating TCC installation behavior... (Bug?) Support 4
S Inexplicable behavior difference in nearly identical shortcuts Support 6
vefatica SHORTCUT behavior (Win7) Support 3
M A question about new behavior that’s a minor irritation… Support 16
M Strange behavior... Support 2
S MSGBOX - inconsistent behavior Support 1
vefatica @REGEX: behavior vs. documentation Support 2
vefatica Strange behavior reloading SHRALIAS sav files. Support 1
S Strange CHKDSK behavior Support 6
Fross Odd IF behavior Support 3
M (Somewhat unbelievable) Do While Behavior/Question Support 1
S RECYCLE /P - unexpected behavior Support 0
J Odd OPTION behavior Support 1
R History window wrong size, can't remember size change Support 12
Alpengreis [FORUM] After change the font, bold is without effect Support 7
R How to? Change TCMD tab font size in window menu Support 3
E How to change window title tcmd window - not tcc window Support 1
Alpengreis Small things to change in installer and after installed Everything Support 0
Charles Dye File completion change Support 11
T Change language in script Support 4

Similar threads