View Single Post
  #1543  
Old 17-05-2023, 18:45
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,074
Thanks: 1,814
Thanked 2,304 Times in 787 Posts
Cesar82 is on a distinguished road
Quote:
Originally Posted by KaktoR View Post
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"
Reply With Quote
The Following User Says Thank You to Cesar82 For This Useful Post:
KaktoR (18-05-2023)