Looking for documentation on parsing variable

November 15, 2009 at 13:25:32
Specs: Windows XP

I'd like to know where I can find documentation
on how to parse/truncate variables in batch

For example, I have the following command in
one of my batch files:

ren %fileName% "%fileName:~9%"

I'm not sure exactly what the :~9% does and
I'd like to understand it better. If you can point
me in the direction documentation that will
explain it, please do.



See More: Looking for documentation on parsing variable

Report •

November 15, 2009 at 18:16:46
At the Command Prompt enter SET/?

In the example you give "%fileName:~9%" would extract all but the first 9 characters of the variable %fileName%

Report •
Related Solutions

Ask Question