Quantcast
Channel: Getting substring of a token in for loop? - Stack Overflow
Viewing all articles
Browse latest Browse all 5

Answer by Aacini for Getting substring of a token in for loop?

$
0
0

On the other hand, if you want to know "How to get the last part (name and extension) of a token in for loop", the answer is: use the ~Name and ~eXtension modifiers in %%g replaceable parameter:

for /d %%g in (%windir%\Assembly\gac_msil\*policy*A.D*) do (echo %%~NXg)

Viewing all articles
Browse latest Browse all 5

Trending Articles