ZTree.com  | ZEN  | About...  

 Index   Back

i think you misunderstood the problem, please try this thread   [Q]

By: Ryan       
Date: Aug 23,2017 at 20:44
In Response to: [Q] how do i test if a string is a number? (David Wall)

i need to make sure if the target string is a number string, then i must avoid it
but
if the target string is a letter string, then i must pass it to the next batch line.

i could not find how to handle this anywhere in the internet.


here is my trial

AA=
SET /A D3=%D1%
SET /A D4=1/D3
IF NOT "%ERRORLEVEL%"=="9169" GOTO END

AA= causes an error, if the string D1 is a letter string, and at the same time if the D1 is 0 number string, it also causes an error, therefore i cant proceed generally based on what i know.

366 views      
Thread locked
 

Messages in this Thread

 
94,954 Postings in 11,969 Threads, 349 registered users, 19 users online (1 registered, 18 guests)
Index | Admin contact |   Forum Time: May 25, 2020 - 12:00 am EDT  |  Hits:31,223,661  (8 Today )
RSS Feed