Thanks orange batch, but what I would like is a detailed explanation of what exactly this means : "%foobar:\=" "%" ie. what do the percentage signs and two sets of double quotes signify? Is this a regular expression?
Thats a really nice, sharp explanation. It is clear to me now. Heres another question - how does the line below work without "/f" switch?? Can you explain to me what is happening? Is it just the standard version condensed in shorthand? for %%a in ("%foobar:\=" "%") do e...
Hi folks, I need to parse the following string. set foobar=\\DPTEST\smspkgf$\GLB0001 to extract "DPTEST", ie, inbetween "\\" and first "\". I had tried for %%a in ("%foobar:\=" "%") do echo %%~a but its churning out everything. The readme for the for...