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
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

SET /A D3=%D1%
SET /A D4=1/D3

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.

Thread locked

Messages in this Thread

94,493 Postings in 11,923 Threads, 348 registered users, 10 users online (1 registered, 9 guests)
Index | Admin contact |   Forum Time: Oct 22, 2019 - 2:36 pm EDT  |  Hits:28,794,523  (3,067 Today )
RSS Feed