|
|
|
|
December 19th, 2007, 03:51 PM
|
|
Captain
|
|
Join Date: Sep 2000
Location: USA
Posts: 806
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
OT: Need help with renaming files in XP
Hey all! Some of you are quite good with computers, so here's a stumper for you. I'm trying to rename a bunch of files with names like:
0.1uJ -50 to 50 spot2f.dat
so that they are shorter, like this:
0.1uJ -50to50 spot2f.dat
but the RENAME command in XP has a bug with wildcards if you change the filename length.
For example, the command
ren "0.?uJ -50 to 50 spot??.dat" "0.?uJ -50to50 spot??.dat"
gives
0.1uJ -50to50 spotot.dat
and if I try
ren "0.?uJ -50 to 50 spot*" "0.?uJ -50to50 spot*"
then I get
0.1uJ -50to50 spotot2f.dat
This is driving me nuts! (Note that there are a lot of files, and the names and desired changes are more complicated than I'm showing here, so I do NOT want to do this manually.)
I've checked various forums and can't find this issue.
Any suggestions would be welcome.
__________________
Give me a scenario editor, or give me death! Pretty please???
|
December 19th, 2007, 04:00 PM
|
|
Shrapnel Fanatic
|
|
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
|
|
Re: OT: Need help with renaming files in XP
Try an app like CKRename.
DOS batch commands are a horrible, horrible mess. Best to avoid them at all costs, and either use an app geared for the task, or use a scripting language like python or perl.
|
December 19th, 2007, 04:07 PM
|
Second Lieutenant
|
|
Join Date: Sep 2006
Posts: 482
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: OT: Need help with renaming files in XP
Have you tried using a FOR loop?
test.bat:
@echo OFF
for %%F in (*.*) do echo %%F
for /? also gives a lot of information about how to deal with deliminators, tokens and such. You should be able to parse it out.
|
December 19th, 2007, 04:39 PM
|
|
Colonel
|
|
Join Date: Jun 2002
Location: Connecticut
Posts: 1,518
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: OT: Need help with renaming files in XP
I use an app instead of Windows Explorer called: Explorer XP {company link} It offers some robust renaming options. Or you could try to find some freeware renaming app.
|
December 19th, 2007, 05:35 PM
|
Corporal
|
|
Join Date: Sep 2006
Posts: 164
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: OT: Need help with renaming files in XP
I recently used File Renamer, since it was free, and can be founds at download.com.
It was helpful in renaming all the SE5 planet textures and portraits I made.
|
December 19th, 2007, 08:58 PM
|
Sergeant
|
|
Join Date: Mar 2006
Location: NS, Canada
Posts: 300
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: OT: Need help with renaming files in XP
I highly recommend the Bulk Rename Utility. A command line version also exists, if you prefer that method.
http://www.bulkrenameutility.co.uk/Download.php
|
December 19th, 2007, 10:48 PM
|
|
Major General
|
|
Join Date: Dec 2003
Location: Tasmania, Australia
Posts: 2,325
Thanks: 1
Thanked 1 Time in 1 Post
|
|
Re: OT: Need help with renaming files in XP
back when I needed to rename whole ship lists to a new empire name for se4 I searched and downloaded the following program
http://www.fauland.com/af5.htm
I haven't used it for ages but I remember it was good. You choose the files and tell it which part to change and to what.
|
December 20th, 2007, 11:58 AM
|
|
General
|
|
Join Date: Mar 2001
Location: UK
Posts: 4,245
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: OT: Need help with renaming files in XP
I'll throw in a another vote for ckrename (see fyron's post). I use it on my shipsets. easy to use, plenty of options, lightweight.
|
December 20th, 2007, 06:18 PM
|
|
Captain
|
|
Join Date: Sep 2000
Location: USA
Posts: 806
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: OT: Need help with renaming files in XP
Thanks for the suggestions. These are a big help!
__________________
Give me a scenario editor, or give me death! Pretty please???
|
December 20th, 2007, 11:57 PM
|
|
National Security Advisor
|
|
Join Date: Jan 2001
Location: Ohio
Posts: 8,450
Thanks: 0
Thanked 4 Times in 1 Post
|
|
Re: OT: Need help with renaming files in XP
I think you can use Irfanview for batch renaming, even if they aren't image files. It sounds weird, but I'm pretty sure it works.
__________________
I used to be somebody but now I am somebody else
Who I'll be tomorrow is anybody's guess
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
|
|