Jump to content



Welcome to AstaHost - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
Photo
- - - - -

Renaming/adding File Extenstions In Windows [Solved]


8 replies to this topic

#1 manuleka

manuleka

    Way Out Of Control - You need a life :)

  • Members
  • 1,603 posts
  • Gender:Male
  • Location:myComputer
  • myCENTs:41.72

Posted 02 December 2011 - 12:32 AM

found an old backup file of itune, which has alot of image files (over 300 jpeg) and a few videos (20+ mov) but they are all named without extensions... is there a way of adding extensions to these files at once in Windows XP?

cheers for any advice/suggestion

#2 yordan

yordan

    Way Out Of Control - You need a life :)

  • [MODERATOR]
  • 4,677 posts

Posted 02 December 2011 - 10:20 AM

Where are the files today? Can you see them on a linux system? Then it's easy to write a "mv" loop.

#3 manuleka

manuleka

    Way Out Of Control - You need a life :)

  • Members
  • 1,603 posts
  • Gender:Male
  • Location:myComputer
  • myCENTs:41.72

Posted 02 December 2011 - 12:14 PM

on my laptop... currently running windows but can boot into xubuntu (dual OS)

#4 yordan

yordan

    Way Out Of Control - You need a life :)

  • [MODERATOR]
  • 4,677 posts

Posted 02 December 2011 - 02:09 PM

So, if you can access the folder with Linux, you can do something funny
cd /mydisk/myfolder
for i in `ls`
do
echo rename $i $i.jpg
done
redirect this to a Windows file named myrename.bat, read the file in order to check that everything is correct, and you can run the generated file when booted with Windows.
Of course, if you want to take the risk, you can also run it directly from Linux, than replace "echo rename" with "mv", that's all.
put a "set -x" in front of that and a "set +x" at the end, in order to have a display while working.
Maybe I should not have written all this, you probably knew this syntax since a long time? :wacko:

#5 yordan

yordan

    Way Out Of Control - You need a life :)

  • [MODERATOR]
  • 4,677 posts

Posted 08 December 2011 - 09:00 AM

found an old backup file of itune, which has alot of image files (over 300 jpeg) and a few videos (20+ mov) but they are all named without extensions... is there a way of adding extensions to these files at once in Windows XP?

cheers for any advice/suggestion


Try this from the Microsoft site, it's funny : http://support.microsoft.com/kb/320167

he Rename function in Windows Explorer does not match the behavior of the REN command you may use at a command prompt. For example, if you had files that are named smitha.doc, smithb.doc, and smithc.doc, you could use the ren smith*.doc smythe*.doc command. All file names automatically show the new spelling, and are renamed smythea.doc, smytheb.doc, and smythec.doc.


I did a simple test with three files named "one", "two", "three", so exactly as your case, files without extension.
A single "rename" instruction I ran once only renamed each file, adding the doc extension.

dir  ..
08/12/2011  09:47				 0 one
08/12/2011  09:48				 0 three
08/12/2011  09:48				 0 two

F:\rename_tests>rename *. e*.doc

F:\rename_tests>dir

08/12/2011  09:54	<REP>		  .
08/12/2011  09:54	<REP>		  ..
08/12/2011  09:48				 0 ehree.doc
08/12/2011  09:47				 0 ene.doc
08/12/2011  09:48				 0 ewo.doc

Doesn't this look like what you wanted to do?

#6 manuleka

manuleka

    Way Out Of Control - You need a life :)

  • Members
  • 1,603 posts
  • Gender:Male
  • Location:myComputer
  • myCENTs:41.72

Posted 13 December 2011 - 07:14 PM

thanks yordan, will look into it :)

#7 yordan

yordan

    Way Out Of Control - You need a life :)

  • [MODERATOR]
  • 4,677 posts

Posted 16 December 2011 - 11:31 AM

So, were you successful?

#8 manuleka

manuleka

    Way Out Of Control - You need a life :)

  • Members
  • 1,603 posts
  • Gender:Male
  • Location:myComputer
  • myCENTs:41.72

Posted 09 January 2012 - 10:52 PM

i ended up using this tool:
http://www.brotherso...load-41537.html

extension renamer :)

#9 starscream

starscream

    Super Member

  • Members
  • 893 posts
  • Gender:Male
  • Location:Land of Shadows
  • myCENTs:48.59

Posted 10 January 2012 - 08:01 PM

I don't remember if this utility works or has linux based port but on windows it works fine. I have used it to change the extension of some of my files. I think that should work. I usually prefer linux command line as it gets work done quickly compared to GUI based tools and maybe it could be just me getting comfortable with the CLI.

I checked your software from the brothersoft site. I think that will also do job in case of mass batch renames and extension changing. There used to be one small utlity written in autohotkey which used to set things up for the file names, I guess it is no longer hosted so no idea about that file.

Anyway, your problem seems to be solved so there is no point in finding it otherwise I could have searched it and posted the link here. I'll find and keep it in delicious thought, just in case.



Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users