Re: Renaming multiple files???
- From: qrk <SpamTrap@xxxxxxxx>
- Date: Sat, 09 Aug 2008 17:33:51 GMT
On Fri, 08 Aug 2008 16:18:47 -0700, Jim Thompson
<To-Email-Use-The-Envelope-Icon@xxxxxxxxxxxxxxx> wrote:
I need to rename multiple files, as for example...
DSC00062.JPG
|
|
|
DSC00098.JPG
to...
Thanksgiving00062.JPG
|
|
|
Thanksgiving00098.JPG
I vaguely remember, in DOS, that I could type:
REN DSC*.JPG NAME*.JPG
But that won't handle long files names, plus it's a pain dropping into
the crappy DOS window.
Anyone know a trick or a utility (doesn't have to be free) that can do
this?
Thanks!
...Jim Thompson
Can't use the DOS ren command unless the wildcard before and after is
the same number of characters. All modern DOS commands will handle
long file names, so no problem there. In fact, the new batch commands
starting with NT are much slicker than the old days, but not as good
as Unix.
What I do is drop to command line window (a couple clicks with my
nifty batch file).
I make a batch file with all the file names in the directory by doing
this:
dir /b *.jpg > zit.bat
Edit zit.bat with a text editor that has macros and make each line
look like this:
ren DSC00098.JPG Thanksgiving00098.JPG
The key to making this workable is creating a macro to modify each
line.
Run the batch file and all the files will be renamed.
Now, for my nifty way of using "Send To" to drop you in a command line
window in the proper directory in a few clicks. This uses the newer
batch commands that were available since NT. Create the following
4-line batch file. I named mine DosStart.bat .
@echo off
%~d1
cd %~p1
cmd
Put DosStart.zip in a directory that's in your searchable path. I
stick all my handy batch files in my Tools directory, but you could
put this in your system32 directory.
Make a shortcut in your SendTo directory
(C:\Documents and Settings\UserName\SendTo) which points to
DosStart.zip. To see the SendTo directory, you need to set Hidden
Files and Folders to visible in Explorer (Tools|Folder Options|View).
To use this handy batch file, in Explorer, navigate to the desired
directory. Right click on any file, select Send To, and click on the
DosStart icon. Presto, a command line window opens and you're sitting
in the directory that Explorer is sitting in.
--
Mark
.
- References:
- Renaming multiple files???
- From: Jim Thompson
- Renaming multiple files???
- Prev by Date: Re: new, and very, very ugly
- Next by Date: Re: Intel details future Larrabee graphics chip
- Previous by thread: Re: Renaming multiple files???
- Next by thread: Re: Renaming multiple files???
- Index(es):
Relevant Pages
|