I tried it with my example, and couldn't get it to work. It still deals with the underscore properly, and most of the coding made some sense to me (the IF statemetns are intuitive).
My example was:
If the files are currently as below:
file 1 - test one.txt
File 2 - test two.txt
file 3 - test three.txt
I would like:
File 1 - Test one.txt
File 1 - Test two.txt
File 1 - Test three.txt
And I don't get the results I wanted.
So that I 'get it', can you help me understand what these two lines mean:
set char1=!newname:~0,1!
set rchars=!newname:~1!
Specifically, what does the squiggle mean (~), and what does it mean to have the zero and one separated by a comma (~0,1)?
For that matter, what does "rchars" mean? I looked on the ComputerHoper glossary page and couldn't find it.
Thank you again,