Author Topic: Help: Quick Batch script to do rename files:  (Read 4838 times)

Offline Shek

  • Awakened Visionist
  • **
  • Posts: 68
  • LV: 5
    • View Profile
Help: Quick Batch script to do rename files:
« on: January 02, 2014, 09:46:10 PM »
I'm looking for a quick script that can be used with a dos batch file, or some other easy thing to do this:

I have a list of SKU's and ID numbers:
(click to show/hide)
...

The list is about 5000 long... UGH!

I have a 2TB folder with images in it that are named after the ID numbers, I need to rename those files to be the matching SKU number.
e.g. I have a file named 18055 and I need to rename it, and any other files named 18055, to 120100.

Is there a quick way to do this procedurally? I already have a .txt file with all the data. 

Disclaimer: I am really bad at scripting / programming

Offline locowhiteknight

  • Awakened Visionist
  • **
  • Posts: 91
  • LV: 5
  • Gender: Male
    • View Profile
Re: Help: Quick Batch script to do rename files:
« Reply #1 on: January 02, 2014, 11:24:34 PM »
(click to show/hide)

I use advanced renamer for batches.

Good luck :-*

Edit:

This method will work a lot better for what you're trying to accomplish (if you have dos and excel at least).

« Last Edit: January 03, 2014, 05:51:26 AM by locowhiteknight »
"Let's get down to brass tacks. How much for the ape?"

Offline Shek

  • Awakened Visionist
  • **
  • Posts: 68
  • LV: 5
    • View Profile
Re: Help: Quick Batch script to do rename files:
« Reply #2 on: January 03, 2014, 08:09:47 AM »
You just made me so happy dude! Thank you so much for the CMD prompt link.

My girlfriend's work assigned her this task and gave her the entire week to complete it (they insist that it can only be done by hand.  Their IT guy doesn't seem to realize that this can be done in under 5 minutes with a script).

Now she gets to take the rest of the week off!

You rock! +1

Offline locowhiteknight

  • Awakened Visionist
  • **
  • Posts: 91
  • LV: 5
  • Gender: Male
    • View Profile
Re: Help: Quick Batch script to do rename files:
« Reply #3 on: January 03, 2014, 08:39:50 PM »
Glad to hear it worked.

A level up  :haha: wow! So... do I get to assign a skill point now.  :???:

If so, I'll take a +1 to scripting. :naughty:
"Let's get down to brass tacks. How much for the ape?"

Offline KK20

  • Master Scripter Fixer
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3128
  • LV: 378
  • Gender: Male
  • Choco Octo <3
    • View Profile
Re: Help: Quick Batch script to do rename files:
« Reply #4 on: January 03, 2014, 09:09:55 PM »
If so, I'll take a +1 to scripting. :naughty:
Don't. The Scripter class is hell to begin with in the early levels--you'll be grinding for days. And when you finally job advance to a Programmer, your originality goes completely down the drain. It is such a bandwagon class because it gets OP as hell in the final levels. I regret making this character get to such a high level--I don't feel any more special than the next guy. Maybe I'll delete him and create the less popular but so much more diverse Audio Engineer.

:V:

EDIT:
(click to show/hide)
« Last Edit: January 03, 2014, 09:46:30 PM by KK20 »



Other Projects
RPG Maker XP AceUpgrade RMXP to RMVXA performance!
XPA TilemapTilemap rewrite with many features, including custom resolution!


NNID: KK20-CP
Discord: KK20 Tyler#8901

Join the CP Discord Server!

Offline Ryex

  • Arctic Bird of Programming
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 5135
  • LV: 198
  • Gender: Male
  • Wants to write a compiler for fun
    • View Profile
Re: Help: Quick Batch script to do rename files:
« Reply #5 on: January 03, 2014, 09:20:38 PM »
I don't know what you guys are talking about. The Scripter class is hella awesome. sure once you get get into the programmer tier the main quest line gets a bit repetitive and menial for a bit but the side quests are the best in the game! and once you get passed the Programmer level and job advance to Software Engineer your basically the most OP "there are no rules anymore" boss as hell player around. Parties will THROW money at you to join them. nothing beats a Software Engineer for grinding the Cooperate region. and every one wants to grind the Cooperate region. the drops there are freaking beast.
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.

DropBox, the best free file syncing service there is.
(click to show/hide)

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19981
  • LV: 647
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: Help: Quick Batch script to do rename files:
« Reply #6 on: January 03, 2014, 10:02:34 PM »
Agreed with Ryex. True, as a programmer you may have somewhat less creative room than a scripter, but only because other people already did do a good job at making things run. And those people are Software Engineers. They are the ones that come up with the creative stuff.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.