OT - Numeric Test Program?

  • Thread starter Thread starter bradwiseathome
  • Start date Start date
B

bradwiseathome

Can anyone recommend a command-line callable .exe that will say if a
given parameter is numeric or not? I am writing a CMD and I need to
create an IF statement if a variable is numeric or not. I need to do a
kind of "isnumeric" comparison in my batch script.

Thanks.
 
Can anyone recommend a command-line callable .exe that will say if

A separate .exe is not necessary.
a given parameter is numeric or not? I am writing a CMD and I need
to create an IF statement if a variable is numeric or not. I need
to do a kind of "isnumeric" comparison in my batch script.

106) How to test whether a variable is a non-negative integer?
163586 May 1 2006 ftp://garbo.uwasa.fi/pc/link/tscmd.zip
tscmd.zip Useful NT/2000/XP script tricks and tips, T.Salmi

All the best, Timo
 
Can anyone recommend a command-line callable .exe that will say if a
given parameter is numeric or not? I am writing a CMD and I need to
create an IF statement if a variable is numeric or not. I need to do a
kind of "isnumeric" comparison in my batch script.

Thanks.

See tip 6301 » How do I determine if a string is all alphabetic or all numeric?
in the 'Tips & Tricks' at http://www.jsifaq.com

Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
http://www.jsifaq.com
 
Back
Top