im beginner, my task is something to do with renaming files in folder, first of all here is a piece of my code:-
setlocal enabledelayedexpansion
set tempLogDate=0
set g=0
for /r %targetStore% %%i IN (*2013*.*) do (
set tempLogDate=9
set g=!g:%tempLogDate%=!
)
the problem is variable %tempLogDate% value is 0 instead of 9, i know i need to use variable expansion(which i have) but i cant replace code "set g=!g:%tempLogDate%.rar=!" to "set g=!g:!tempLogDate!.rar=!", i try escape character but no result, guys pls help me..thanks in advance