Answer for:

Renaming JPG Files With a Batch File

Message 2 of 6

View entire thread
0 Votes

From a cursory glance at your batch file:
You set newfile=%%V

Then you are immediately overwirting that setting with a different string.

I seem to recall that won't work.

try using a different tactic.
SET newfile=%%v
SET newfile1=GR%%L%%J%%K%%M%%N-%newfile:~-8%
set newfile=%newfile1

I'm sure my syntax is wring but I hope you get the idea.

Create variable1
create variable2 based on variable1
set variable = variable2

continue processing with new value for variable1