.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

Reply
 
Thread Tools Display Modes
  #1  
Old December 19th, 2007, 03:51 PM
dmm's Avatar

dmm dmm is offline
Captain
 
Join Date: Sep 2000
Location: USA
Posts: 806
Thanks: 0
Thanked 0 Times in 0 Posts
dmm is on a distinguished road
Default 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???
Reply With Quote
  #2  
Old December 19th, 2007, 04:00 PM
Fyron's Avatar

Fyron Fyron is offline
Shrapnel Fanatic
 
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
Fyron is an unknown quantity at this point
Default 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.
__________________
It's not whether you win or lose that counts: it's how much pain you inflict along the way.
--- SpaceEmpires.net --- RSS --- SEnet ModWorks --- SEIV Modding 101 Tutorial
--- Join us in the #SpaceEmpires IRC channel on the Freenode IRC network.
--- Due to restrictively low sig limits, you must visit this link to view the rest of my signature.
Reply With Quote
  #3  
Old December 19th, 2007, 04:07 PM

aegisx aegisx is offline
Second Lieutenant
 
Join Date: Sep 2006
Posts: 482
Thanks: 0
Thanked 0 Times in 0 Posts
aegisx is on a distinguished road
Default 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.
Reply With Quote
  #4  
Old December 19th, 2007, 04:39 PM
Arkcon's Avatar

Arkcon Arkcon is offline
Colonel
 
Join Date: Jun 2002
Location: Connecticut
Posts: 1,518
Thanks: 0
Thanked 0 Times in 0 Posts
Arkcon is on a distinguished road
Default 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.
Reply With Quote
  #5  
Old December 19th, 2007, 05:35 PM

MasterChiToes MasterChiToes is offline
Corporal
 
Join Date: Sep 2006
Posts: 164
Thanks: 0
Thanked 0 Times in 0 Posts
MasterChiToes is on a distinguished road
Default 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.
Reply With Quote
  #6  
Old December 19th, 2007, 08:58 PM

StarShadow StarShadow is offline
Sergeant
 
Join Date: Mar 2006
Location: NS, Canada
Posts: 300
Thanks: 0
Thanked 0 Times in 0 Posts
StarShadow is on a distinguished road
Default 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
Reply With Quote
  #7  
Old December 19th, 2007, 10:48 PM
Randallw's Avatar

Randallw Randallw is offline
Major General
 
Join Date: Dec 2003
Location: Tasmania, Australia
Posts: 2,325
Thanks: 1
Thanked 1 Time in 1 Post
Randallw is on a distinguished road
Default 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.
Reply With Quote
  #8  
Old December 20th, 2007, 11:58 AM
dogscoff's Avatar

dogscoff dogscoff is offline
General
 
Join Date: Mar 2001
Location: UK
Posts: 4,245
Thanks: 0
Thanked 0 Times in 0 Posts
dogscoff is on a distinguished road
Default 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.
Reply With Quote
  #9  
Old December 20th, 2007, 06:18 PM
dmm's Avatar

dmm dmm is offline
Captain
 
Join Date: Sep 2000
Location: USA
Posts: 806
Thanks: 0
Thanked 0 Times in 0 Posts
dmm is on a distinguished road
Default 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???
Reply With Quote
  #10  
Old December 20th, 2007, 11:57 PM
geoschmo's Avatar

geoschmo geoschmo is offline
National Security Advisor
 
Join Date: Jan 2001
Location: Ohio
Posts: 8,450
Thanks: 0
Thanked 4 Times in 1 Post
geoschmo is on a distinguished road
Default 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
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 11:31 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.