This is a really neat trick I never knew existed. Have a series of files with mis-matching names and want to put them in better order? It's mega-easy, just follow these simple directions.
- Highlight the files you want to rename. (Use Ctrl or Shift to highlight multiple files at once)
- Right-Click the first file in the series, click Rename.
- Only the file you've right clicked will be highlighted. That's OK. Change the file name, the extension will be kept.
- Hit the enter key to commit your change. Your files will be named "file (1).jpg", "file (2).jpg", etc..
Note: If you've turned on "View extensions for known file types", leave the file extension intact when you rename.
Tags: howtos, rename files, rename multiple files, RenameFiles, RenameMultipleFiles, tips
Comments
7
Subscribe to commentsyhancikFeb 24th 2007 1:19PM
Ant Renamer (http://www.antp.be/software/renamer) is a quite handy tool to mass-rename files
digistrom.blogspot.comFeb 24th 2007 1:53PM
http://digistrom.blogspot.com/2007/02/batch-rename-files-sophisticated-way_08.html
... a lot of people (including myself) use this hack from time to time but it doesn't provide enough control and more importantly it is risky! If you mistakenly select files that don't need to be renamed you will have no way of getting the original file names back! Yes, Windows allows us to undo a renaming action by pressing Ctrl-Z but it will only undo the renaming for a handful of files, just ten. The rest of the file names will be lost forever...
dukeFeb 24th 2007 2:46PM
for next post, we are going to discuss how to do Right Clicks with your mouse.
jmalenkoFeb 24th 2007 2:39PM
c=1 zmv '*.jpg' 'file-$((c++)).jpg'
or without zsh
c=1; for i in *.jpg; do mv $i file-$((c++)); done
or even better, for numbering like (0001,0002,0003)
zmv ’(*).jpg’ ’file-${(l:4::0:)1}.jpg’
VampazFeb 25th 2007 1:08PM
LOL, you have started using windows today.
hazardFeb 25th 2007 9:07PM
sorry but this "feature" is more annoying than useful..
BenFeb 26th 2007 7:19AM
It was just as interesting when downloadsquad blogged about it a few months ago .... don't you read your own blog? :S
http://www.downloadsquad.com/2006/05/09/batch-file-renaming-in-windows/