Oh. Just took a look at the generated bpx file. Found the reason for the problem.
Hehe. Sorry about that..
This code was only tested with echo...
Didn't notice the syntax issue with ren..
@echo off & SETLOCAL EnableDelayedExpansion
dir /b /s *.txt>1.pxp
set FileEx=
for /f "tokens=* " %%i in (1.pxp) do (
set FileEx=%%i
set FileEx=!FileEx:~0,-4!
ren "!FileEx!.txt" "*.pxp"
)
pause
Now it's good.
Hehe. Sorry about that..
This code was only tested with echo...
Didn't notice the syntax issue with ren..
@echo off & SETLOCAL EnableDelayedExpansion
dir /b /s *.txt>1.pxp
set FileEx=
for /f "tokens=* " %%i in (1.pxp) do (
set FileEx=%%i
set FileEx=!FileEx:~0,-4!
ren "!FileEx!.txt" "*.pxp"
)
pause
Now it's good.
