Search found 1 match
- 25 Oct 2012 13:38
- Forum: DOS Batch Forum
- Topic: Check variable is number
- Replies: 9
- Views: 13455
Check variable is number
I have a process that checks the output of the previous command is greater than 0. for /f "delims=" %%a in ('sqlcmd -S host -E -h-1 -Q "SET NOCOUNT ON; SELECT MAX(Com_Num) AS MaxCompVal FROM status"') do @set MaxComp=%%a if %MaxComp% > 0 goto FPass :FPass <Commands> The above pro...