Matching specific files..

Post any Bulk Rename Utility support requirements here. Open to all registered users.

Matching specific files..

Postby nonymoosee » Wed Jan 06, 2016 11:02 am

First of all, thank you so much for this, it's a lifesaver. So I am trying to use the command line program, which would be the PERFECT solution since I could set it up to run at midnight everynight, or as needed in silent mode... but.. I am hoping that I can make my command a bit SMARTER then it currently is..

What I am trying to accomplish:
Only work on files formatted like this: _****_**_**_**-**.ch
Change: _2016_01_05_23-07.chw
To" 160105xx.chw

What I came up with:
BRC32.exe /DIR:"C:\test" /MINLEN:“008” /PATTERN:"_****_**_**_**-**.chw" /REMOVENAME /APPENDDATE:N:P:::7 /AUTONUMBER:01:1:S::10:2 /NODUP /EXECUTE

The problems: (1 is by far more important)
1) The program needs to be run multiple times a day sometimes, is there a way to continue the numbering scheme, instead of adding _01 at the end, which defeats the whole purpose of this?

2) These files are generated everytime the machine is started, and it generates something like: _2016_01_05_XX-XX.chw, where 2016 is the year, 01 is the month, and 05 is the day. I am wondering if there is a way to SAVE the day, the month and the year will always be the same as the month and year when it's run.

For example: If I run the machine on Jan 06th, it will give me: _2016_01_06_**-**.chw (xx are random increasing). If I FORGET to run this command for a week(or the scheduling fails) and then run it, it will change all the file names but... it will change them to the date that I run the program, not the date on the file. So is there someway to get it to just recognize the DD part? I'm way out of my depth and appreciate all your help in advance.


Also tried:
BRC32.exe /DIR:"C:\test" /MINLEN:“008” /PATTERN:"_****_**_**_**-**.chw" /STRIPSYMBOLS
-Nonymoosee, the BRU newb.

but then I don't know how to change 2016 to 16 and the _**-** at the end to a numbered 01-99, and problem 1 still exists.
nonymoosee
 
Posts: 5
Joined: Wed Jan 06, 2016 10:27 am

Re: Matching specific files..

Postby nonymoosee » Wed Jan 20, 2016 11:17 am

bump
nonymoosee
 
Posts: 5
Joined: Wed Jan 06, 2016 10:27 am

Re: Matching specific files..

Postby therube » Wed Jan 20, 2016 11:07 pm

( LOL.
So I've long renamed files, auto-incrementing their "name" (number) using the [OLD, DOS program] Ren2Num.
That works fine on XP, but not in a 64-bit OS, nor in Sandboxie.
So not too long ago, I went about finding an alternative program.
And what I found (which I hadn't remembered until I just went to check) was, I where the LOL comes in to play) is BRC32 ;-). )


Perhaps a start (& assuming I'm understanding correctly)...


BRC32 /pattern:_* /stripsymbols /removefirstn:2

-> Filename _2016_01_05_23-07.chw would be renamed to 1601052307.chw

After that, I'm not clear on what you're wanting to do with 23-07 ?
If you want to keep the 23, dropping the 07 is OK, then you could use /removelastn:2

-> Filename _2016_01_05_23-07.chw would be renamed to 16010523.chw

And the /insert:-:7 to add that dash

-> Filename _2016_01_05_23-07.chw would be renamed to 160105-23.chw

That part of it is this:

BRC32 /pattern:_* /stripsymbols /removefirstn:2 /removelastn:2 /insert:-:7

---

AUTONUMBER's "_#", I too would rather it be able to increment a number itself, rather then appending the _#.
therube
 
Posts: 394
Joined: Mon Jan 18, 2016 6:23 pm

Re: Matching specific files..

Postby nonymoosee » Thu Oct 06, 2016 2:48 am

So I would want to remove the 2307 and add 01, and to the text file, (according to creation date or whatever), 02, 03, 04. I've attached a screenshot of my current settings for the GUI version of the program, but I would like to automate it because the other employees are computer illiterate.. Just like below, except I would want it to restart for every new day from 01 again.

Image
nonymoosee
 
Posts: 5
Joined: Wed Jan 06, 2016 10:27 am

Re: Matching specific files..

Postby nonymoosee » Thu Feb 23, 2017 11:49 pm

Bump.... Anyone have any ideas on how to automate this?
nonymoosee
 
Posts: 5
Joined: Wed Jan 06, 2016 10:27 am

Re: Matching specific files..

Postby nonymoosee » Wed Sep 06, 2017 1:32 am

Bump, anyone got any ideas? I would still love to automate what I do manually with BulkRenameUtility..

Thanks guys!
nonymoosee
 
Posts: 5
Joined: Wed Jan 06, 2016 10:27 am


Return to BRU Support