Go Back   AnandTech Forums > Software > Software for Windows

Forums
· Hardware and Technology
· CPUs and Overclocking
· Motherboards
· Video Cards and Graphics
· Memory and Storage
· Power Supplies
· Cases & Cooling
· SFF, Notebooks, Pre-Built/Barebones PCs
· Networking
· Peripherals
· General Hardware
· Highly Technical
· Computer Help
· Home Theater PCs
· Consumer Electronics
· Digital and Video Cameras
· Mobile Devices & Gadgets
· Audio/Video & Home Theater
· Software
· Software for Windows
· All Things Apple
· *nix Software
· Operating Systems
· Programming
· PC Gaming
· Console Gaming
· Distributed Computing
· Security
· Social
· Off Topic
· Politics and News
· Discussion Club
· Love and Relationships
· The Garage
· Health and Fitness
· Home and Garden
· Merchandise and Shopping
· For Sale/Trade
· Hot Deals with Free Stuff/Contests
· Black Friday 2014
· Forum Issues
· Technical Forum Issues
· Personal Forum Issues
· Suggestion Box
· Moderator Resources
· Moderator Discussions
   

Reply
 
Thread Tools
Old 02-10-2013, 11:42 AM   #1
robphelan
Diamond Member
 
robphelan's Avatar
 
Join Date: Aug 2003
Location: Texas
Posts: 4,021
Default file renaming utility

I've got a large, tedious job to do.

For work, we run this inbound interface that processes a file by its name - let's say inbound.dat

In our Test environment, we're making changes, so we want to run several hundred inbound files through(we can only run them one by one since the file names are the same, otherwise they'd overwrite each other) which we retrieved from our archive directory.

They all have date/timestamps on them, to make the file names unique - inbound.dat20130115_112301

Now, I have two possible solutions:

1) I could prepare the files ahead of time by renaming the each to inbound.dat and create a new directory for each one (since the file names are the same). That way, all i have to do is drop them manually into the interface's directory.

OR

2) feed these files into some sort of batch list processing that will rename them one at a time and drop them into the interface's directory every 3 minutes.

Any ideas?
__________________
HEAT
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination.

"One day when you have more to care about in this world than yourself and can see the grown-up's side of ... please put your hands in your lap and stop carelessly pushing the buttons in front of you...."
robphelan is offline   Reply With Quote
Old 02-10-2013, 01:06 PM   #2
robphelan
Diamond Member
 
robphelan's Avatar
 
Join Date: Aug 2003
Location: Texas
Posts: 4,021
Default

I found BRU - Batch Rename File utility

http://www.bulkrenameutility.co.uk/Download.php

has lots of option.

Looks like it will still be somewhat of a manual process, but I think this is the best I can do unless I write a program myself.

thanks
__________________
HEAT
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination.

"One day when you have more to care about in this world than yourself and can see the grown-up's side of ... please put your hands in your lap and stop carelessly pushing the buttons in front of you...."
robphelan is offline   Reply With Quote
Old 02-10-2013, 01:26 PM   #3
lxskllr
Lifer
 
lxskllr's Avatar
 
Join Date: Nov 2004
Location: Somewhere over the rainbow
Posts: 38,733
Default

I think writing a script is a grand idea. It'll be good for exercising your brain, and you can adapt it for future needs.
lxskllr is offline   Reply With Quote
Old 02-10-2013, 02:08 PM   #4
gevorg
Diamond Member
 
gevorg's Avatar
 
Join Date: Nov 2004
Location: Bay Area
Posts: 4,834
Default

PowerShell
gevorg is offline   Reply With Quote
Reply

Thread Tools

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 Off

Forum Jump


All times are GMT -5. The time now is 08:31 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.