Code: Select all
setlocal enabledelayedexpansion
set q=this^&that
echo %q%
set q=!q:^&=or!
echo %q%
Code: Select all
setlocal enabledelayedexpansion
set q=this^&that
echo %q%
set q=!q:^&=or!
echo %q%
Code: Select all
echo.>>filename
echo *********>>filename
echo.>>filename
Code: Select all
SETLOCAL
set filecount=1
for /f %%a in ('dir /on /b *.jpg') do (call :rename %%a)
GOTO :EOF
:rename
ren %1 %filecount%.jpg
set /a filecount+=1
GOTO:EOF