Is it possible ?

Post any general comments regarding Bulk Rename Utility here. Open to all registered users.

Is it possible ?

Postby stephaud » Wed Feb 01, 2017 3:42 pm

Hi !

I would like to know if is it possible and how to do that :

i've a folder with a bunch of files,
every file begins by
tile_x=001&y=001 up to tile_x=001&y=153
tile_x=002&y=001 up to tile_x=002&y=153
tile_x=003&y=001 up to tile_x=003&y=153
.
.
.
tile_x=259&y=001 up to tile_x=259&y=153

I want every 1530 files to be selected (range x=001 to x=010, and so on...), copied and pasted in a new subfolder named by the range selected (range x=001 to x=010 give> "x001 - x010" would be the name of the first subfolder, and so on til the end).

Thanks for your help.
stephaud
 
Posts: 7
Joined: Tue Jan 31, 2017 3:51 pm

Re: Is it possible ?

Postby JMM » Fri Feb 03, 2017 8:07 pm

BRU is not the right tool to do that kind of stuff. You'd need to create the folders yourself and BRU could only help you in finding, selecting and moving the files to the new folders, and the search term and folder must be changed and reselected for each operation. The other option is that Javascript Renaming thing, you need to buy a license of the program, and get into Javascript ofc.

However, this is imho a good task for some spreadsheet and formula writing, and the result pasted into a batch file. I do this very often, yours took me 3 minutes. Look at this PasteBin: http://pastebin.com/Nn1pAjVc
It has all you need: it will create the needed folders, and move tiles x from 1 to 259. You can examine the code, paste it into movetiles.bat (or hit the download button), place that file where your files are, or better, in an alternative copy, just in case, and just double-click the batch file for some moving goodness. Please report if it went well.
JMM
 
Posts: 29
Joined: Sat Jan 25, 2014 12:12 pm

Re: Is it possible ?

Postby stephaud » Wed Feb 08, 2017 11:58 am

Wow great ! Thanks for your work JMM ! (and help !)
Finally I've done the tedious process manually, but i'm sure it will help me soon ;)
For now i'm doing lot's of thing in my personnal project that i'm running on, so when i will got some times i will look at your code, i'd have to check how to adapt it for another amount of files and different pattern/range...
BTW thanks a lot JMM !
stephaud
 
Posts: 7
Joined: Tue Jan 31, 2017 3:51 pm

Re: Is it possible ?

Postby stephaud » Wed Feb 08, 2017 3:40 pm

It works great !
You just missed some lines in the batch (move "tile_x=010*.*" "x001 - x010" / move "tile_x=020* .... move "tile_x=030*.... etc etc). I've added them.
Thanks again JMM !
stephaud
 
Posts: 7
Joined: Tue Jan 31, 2017 3:51 pm


Return to General Comments