I need help please... someone do a favor

Charles Dye

Super Moderator
Staff member
May 20, 2008
Albuquerque, NM
The percent sign is very difficult to work with, since it's used for variable expansion. SETDOS /X-4 might be helpful. Or -- more complicated, but probably more reliable -- dump the variable to a file with e.g. SET MYVAR > MYVAR.TXT and then parse the file with FIND or FFIND or sed/awk/grep or whatever.

What do you mean by "find"? Find the offset of the first percent sign in the string? The last one? Count percent signs? Or just determine whether or not the string contains a percent sign?