Computing.Net > Forums > Disk Operating System > multiple renaming of file

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.

multiple renaming of file

Reply to Message Icon

Name: mrunalgoswami
Date: February 15, 2009 at 17:28:31 Pacific
OS: winxp
Subcategory: General
Comment:

I have to rename multiple files.

original file name:
os_work_465.jpg to os_comp_465.rtf
os_work_466.jpg to os_comp_466.rtf.

and so on.
In short I have to replace work by comp and *.jpg or *.pdf extensions to *.rtf.
No if i get file such as - abc.jpg or abc.pdf then i have to rename as abc.rtf

There are about 50 folders having 10 subfolders each for renaming.
Please tell me how I have to do?? Using simple Batch file or any software



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: February 15, 2009 at 22:02:19 Pacific
Reply:

It's anybody's guess why you'd change file extensioms. But those are *NOT* DOS filenames.


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

M2


0

Response Number 2
Name: DAVEINCAPS
Date: February 16, 2009 at 01:01:43 Pacific
Reply:

Check some of these utilities:

http://www.webattack.com/freeware/s...


0

Response Number 3
Name: T-R-A
Date: February 16, 2009 at 03:01:11 Pacific
Reply:

As DAVE mentioned, some of those are very good. Bulk Rename Utility would be my pick:

http://www.bulkrenameutility.co.uk/...


0

Response Number 4
Name: Hansum Krishna
Date: June 10, 2009 at 22:32:19 Pacific
Reply:

i will tell you how to do it by a batch file.....
type the following code in a batch file....

===

@echo off
ren *.jpg *.rtf
ren *.pdf *.rtf

===
Now Copy this bat file to each folders you want to rename *.jpg *.pdf files to *.rtf........


0

Response Number 5
Name: DAVEINCAPS
Date: June 11, 2009 at 00:10:21 Pacific
Reply:

That only works in his example of abc.jpg or abc.pdf to abc.rtf. You're not paying attention to what he wants to do. The other files would be handled like this:

ren os_work_???.jpg os_comp_???.rtf
ren os_work_???.pdf os_comp_???.rtf

and that assumes the file names all had 3 characters replacing the ??? wildcards.

And did you notice he had 50 folders, each with 10 subfolders? That's a total of 500 folders. And you expect him to copy his batch file to each of those?

That's why we suggested bulk renaming utilities.


0

Related Posts

See More



Response Number 6
Name: Hansum Krishna
Date: June 12, 2009 at 02:08:10 Pacific
Reply:

"DAVEINCAPS"......But it will rename
os_work_XXX.jpg to os_comp_XXX.rtf
just i dont know script for doing it in all folders......
but really i tried.......on creating a file os_work_XXX.jpg....
it was converted man.....that bat file really works......just try...

=============
hAnSuM KrIsHnA
-a bLACK hAT hACKER
'N'
-a pRO cRACKER
...........................


0

Response Number 7
Name: DAVEINCAPS
Date: June 12, 2009 at 12:15:10 Pacific
Reply:

No, it won't work. YOU try it. How does the REN command in your batch file know to replace WORK with COMP in the file names?

If you do ren *.jpg *.rtf on OS_WORK_465.jpg you get OS_WORK_465.RTF not OS_COMP_465.RTF. The file name replaced by * in ren *.jpg *.rtf doesn't change. The only thing that changes is all the jpg extensions become rtf.

You need to think before you hit the 'submit follow up' button.


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 Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: multiple renaming of file

How can I rename all files in a directory ? www.computing.net/answers/dos/how-can-i-rename-all-files-in-a-directory-/2201.html

Rename a file to file with a secuential number? www.computing.net/answers/dos/rename-a-file-to-file-with-a-secuential-number/4799.html

a batch file to rename certain files www.computing.net/answers/dos/a-batch-file-to-rename-certain-files/10372.html