A
awrightus@gmail.com
Trying to find a way to search for white space in an environment
variable. Batch file running on XP. Let's say I have a variable
test1 that equals "word", but then another that equals "word
another". Trying to to figure out when an environment variable has a
space in it. findstr.exe seems to support regular expressions, so I
thought I could do "findstr /R \s %test1%", but findstr.exe only seems
to want to search files and not variables. Any ideas how to approach
this? Thanks.
Steve
variable. Batch file running on XP. Let's say I have a variable
test1 that equals "word", but then another that equals "word
another". Trying to to figure out when an environment variable has a
space in it. findstr.exe seems to support regular expressions, so I
thought I could do "findstr /R \s %test1%", but findstr.exe only seems
to want to search files and not variables. Any ideas how to approach
this? Thanks.
Steve