Quote:
Originally Posted by KaktoR
My question is not about INNO but batch. Since batch is not something I deal everyday with, I need some help here. I don't want to open a new topic for this.
I have some files which I extract with a tool. The problem is that the extracted folders have the exact name as the files.
For example
Code:
File1.abc > Folder1.abc
File2.abc > Folder2.abc
...
Basically I need to get rid of the ".abc" in the folder names.
I already tried something like this but didn't work.
Code:
for /d %%i in (*.abc) do ren "%%~i" *
|
Try
Code:
for /d %%i in (*.abc) do ren "%%~i" "%%~ni"