Computing.Net > Forums > Programming > File extension Rename

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

File extension Rename

Reply to Message Icon

Name: Genocide (by Greaper6)
Date: January 16, 2008 at 13:55:13 Pacific
OS: WinXP MC E
CPU/Ram: ...
Product: Dell
Comment:

I have about 3000+ HTML files that have FB! extensions. (EX: BW16.HTM.fb!)

I need something to remove the .fb! from ALL 3000+ files, is there anyway I can do this with a few clicks?



Sponsored Link
Ads by Google

Response Number 1
Name: IVO
Date: January 16, 2008 at 14:09:11 Pacific
Reply:

At prompt type

cd \Folder_Name

where Folder_Name is the path\name of the folder where your files are stored, then

for %j in (*.fb!) do ren %j %~nj

and you are done.


0

Response Number 2
Name: tonysathre
Date: January 16, 2008 at 14:14:33 Pacific
Reply:

@echo off
for /f "tokens=* delims=." %%a in ('dir /b *.fb!') do (
rename %%a %%~na
)

"Foolproof systems don't take into account the ingenuity of fools."


0

Response Number 3
Name: klint
Date: January 16, 2008 at 14:16:08 Pacific
Reply:

Actually it's even easier than that! Just type:

ren *.fb! *.

... and that's it!

This is one of the rare occasions where Windows command line is easier to use than Unix shells.


0

Response Number 4
Name: Genocide (by Greaper6)
Date: January 16, 2008 at 14:26:11 Pacific
Reply:

Ok, I have these *.FB! in like in a few differ folders, and those folders are in One folder, which can I do and it take care of that in ALL the folders?


0

Response Number 5
Name: klint
Date: January 16, 2008 at 15:12:10 Pacific
Reply:

Go to the folder that contains all the other subfolders, and type:

for /r %f in (.) do ren "%f\*.fb!" *.


0

Related Posts

See More



Response Number 6
Name: Mechanix2Go
Date: January 17, 2008 at 08:48:22 Pacific
Reply:

well... almost
for /r %f in (*.txt) do @ren "%f" "%~Nf."


=====================================
If at first you don't succeed, you're about average.

M2



0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: File extension Rename

.hpgl / .obj file extensions to dis www.computing.net/answers/programming/hpgl-obj-file-extensions-to-dis/11533.html

Batch file to rename file(s) in dir www.computing.net/answers/programming/batch-file-to-rename-files-in-dir/13357.html

Add new file extensions to registry www.computing.net/answers/programming/add-new-file-extensions-to-registry/9106.html