/APPENDDATE structure, /INCHS error

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

/APPENDDATE structure, /INCHS error

Postby pavelh » Mon Sep 22, 2014 9:07 pm

Hi,
I would like to use BRC64.exe (Win7 x64) to rename all files in a folder/subfolder tree by adding each file's modified date to the file's filename (files only). I have difficult time understanding the provided user guide though and since it contains no examples (except for a few partial ones). Could somebody kindly help me with this, pls?

The file "pcre.dll" which is part of the download (and is not mentioned in the user guide at all) - any purpose, pls?

/APPENDDATE's segment
(Segment - the text to place between each of the sub-elements of the text Can be blank.)
What does it do, pls? It doesn't seem to do anything for me.

EDITED AFTER SOME WORK
Could somebody kindly check that my syntax is correct?
@brc64.exe /DIR:"D:\folder" /RECURSIVE /INCLH /INCLR /INCLS /NOFOLDERS /APPENDDATE:M:S:__::10:%%Y%%m%%d%%H%%M%%S /EXECUTE


Many thanks in advance!

best regards,
PH

P.S.
NOTES FOR SEARCHERS:
"Unrecognised Argument: INCHS" error is explained here:
http://www.bulkrenameutility.co.uk/forum/viewtopic.php?f=8&t=1311&p=3661&hilit=inchs#p3661
there is a type in the manual (what?!), sigh

P.P.S.
If this utility works, it could be great! Must have been tons of work (congrats and thanks to the authors). The user guide (though obviously written with good intentions, e.g. it tries to advice and warn user) is not doing it justice at all though.
Last edited by pavelh on Mon Sep 22, 2014 9:42 pm, edited 3 times in total.
pavelh
 
Posts: 5
Joined: Mon Sep 22, 2014 8:53 pm

BRC: /APPENDDATE structure, /INCHS error

Postby Stefan » Tue Sep 23, 2014 7:30 am

pavelh wrote:The file "pcre.dll" which is part of the download (and is not mentioned in the user guide at all) - any purpose, pls?
Is your google broken?

Perl-compatible regular-expression library.
The PCRE library is a set of functions that implement regular expression
pattern matching using the same syntax and semantics as Perl.
It's used by the the BRU author to implement the regex feature.



pavelh wrote:/APPENDDATE's segment
(Segment - the text to place between each of the sub-elements of the text Can be blank.)
What does it do, pls? It doesn't seem to do anything for me.
If in doubt, just test it out, but without the "/EXECUTE" switch:

Segment does what the help says, but work only for "Format 1-9",
as for "Format 10" you would add your segment separators yourself.

X:\BulkRenameUtilitie\BRC>BRC.exe /APPENDDATE:M:S:_:,:7
Processing Folder X:\BulkRenameUtilitie\BRC\
Filename BRC.chm would be renamed to BRC_08,06,03.chm
Filename BRC.cmd would be renamed to BRC_08,10,07.cmd
Filename BRC.exe would be renamed to BRC_07,01,29.exe

X:\BulkRenameUtilitie\BRC>BRC.exe /APPENDDATE:M:S:" - "::10:%Y-%m-%d_%H.%M.%S
Processing Folder X:\BulkRenameUtilitie\BRC\
Filename BRC.chm would be renamed to BRC - 2008-06-03_12.10.46.chm
Filename BRC.cmd would be renamed to BRC - 2008-10-07_18.10.54.cmd
Filename BRC.exe would be renamed to BRC - 2007-01-29_12.20.10.exe





pavelh wrote:Could somebody kindly check that my syntax is correct?
@brc64.exe /DIR:"D:\folder" /RECURSIVE /INCLH /INCLR /INCLS /NOFOLDERS /APPENDDATE:M:S:__::10:%%Y%%m%%d%%H%%M%%S /EXECUTE

If in doubt, just test it out, but without the "/EXECUTE" switch, then you will see if it works.
General tip for others: double the percent signs only if used in a batch file, on the command line in a console window (DOS-Box) use single %-signs only.


 
Stefan
 
Posts: 736
Joined: Fri Mar 11, 2005 7:46 pm
Location: Germany, EU

Re: BRC: /APPENDDATE structure, /INCHS error

Postby pavelh » Tue Sep 23, 2014 4:55 pm

Stefan wrote:
pavelh wrote:The file "pcre.dll" which is part of the download (and is not mentioned in the user guide at all) - any purpose, pls?
Is your google broken?

Perl-compatible regular-expression library.
The PCRE library is a set of functions that implement regular expression
pattern matching using the same syntax and semantics as Perl.
It's used by the the BRU author to implement the regex feature.
 


I asked for purpose, not definition, therefore googling it does not help. Still don't know if the .dll should be accessible somewhere etc, sigh. Still, many thanks for all your info!!!!!! Hope to get to read it this evening.

Regs,
PH
pavelh
 
Posts: 5
Joined: Mon Sep 22, 2014 8:53 pm

Re: /APPENDDATE structure, /INCHS error

Postby pavelh » Tue Sep 23, 2014 8:16 pm

Stefan,
went thru the info, again, thank you very much, its very useful!
If you feel like spending a bit more time on me:
The "pcre.dll" does not have to placed anywhere special on Win7, right? I don't have it as a part of my OS, but the brc64.exe seems to work regardless. Well, this is the problem - I cannot be sure. It can be something that works fine 99% of the time and then it doesn't. This troubles me. Sigh. Want to use it for backups. Makes sense to be cautious, doesn't it? :-)
PH
pavelh
 
Posts: 5
Joined: Mon Sep 22, 2014 8:53 pm

Re: /APPENDDATE structure, /INCHS error

Postby Stefan » Tue Sep 23, 2014 8:40 pm

Generally, such DLLs could be put anywhere in the "PATH". (see DOS-Box > set path)

This PATH is searched for such files.

That way many applications can use the same DLL and you will need only one of them on your system.

But on default, BRC and BRU have that DLL in his folder beside the BRC/BRU.exe.
There the app looks first for this DLL. Next it search the PATH, if not found in BRC/BRU folder.
So best place the DLL in the BRC/BRU folder to be sure that that DLL is used.

That is true for every app. But then there are exceptions of that rule again for some apps :D


HTH? :D


--------------

EDIT
Just saw you other post: ""I asked for purpose of The file "pcre.dll"""


If still not clear, see BRC Help:

About Bulk Rename Command
The Regular Expression logic uses the excellent PCRE Library available here. (http://www.pcre.org/)

The PCRE library is a set of functions that implement regular expression pattern matching using the same syntax and semantics as Perl
http://www.pcre.org/


So BRC / BRU use this to implement RegEx support.







 
Stefan
 
Posts: 736
Joined: Fri Mar 11, 2005 7:46 pm
Location: Germany, EU

Re: /APPENDDATE structure, /INCHS error

Postby pavelh » Wed Oct 08, 2014 9:30 pm

Shame on me for not replying sooner. Stefan, thank you very much for all your great info. I have been using my new backup script ever since and it seems to work perfectly. It is also very flexible and so fast.
Thank you, thank you, thank you!
Best regards,
PH
pavelh
 
Posts: 5
Joined: Mon Sep 22, 2014 8:53 pm


Return to BRC Support