S
ShadowTek
I know how to pull a substring out of a variable, but I don't know how
to get a substring out of a variable in a for loop.
When I try the folluwing command...
for %G in (Input_Files\*) do echo %G:~12%
....I get this:
Input_Files\New Text Document.txt:~12%
But what I am trying to get is this:
New Text Document.txt
What is wrong with this?
to get a substring out of a variable in a for loop.
When I try the folluwing command...
for %G in (Input_Files\*) do echo %G:~12%
....I get this:
Input_Files\New Text Document.txt:~12%
But what I am trying to get is this:
New Text Document.txt
What is wrong with this?