Copy files daily when source file changes.

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

Copy files daily when source file changes.

Postby brokenegg » Tue Sep 21, 2010 5:45 am

Any help would be greatly appriciated.

What i need to do is rename the contents of a folder that change daily then copy these files to a new destination.

There a 5 files that will need to be copied daily.

For example the 5 Actions that i will need

I need to copy
c:\soure\todays date 1.mp3 to c:\destination\AJSS1.mp3
c:\soure\todays date 2.mp3 to c:\destination\AJSS2.mp3
c:\soure\todays date 3.mp3 to c:\destination\AJSS3.mp3
c:\soure\todays date 4.mp3 to c:\destination\AJSS4.mp3
c:\soure\todays date 5.mp3 to c:\destination\AJSS5.mp3

The destination is always the same. its just the source file that changes but it is always from the same folder.

Would love to know if this is possible to run as a Bat file that will run after a FTP download.
brokenegg
 
Posts: 1
Joined: Tue Sep 21, 2010 5:25 am

Re: Copy files daily when source file changes.

Postby Stefan » Tue Sep 21, 2010 7:20 am

brokenegg wrote:Any help would be greatly appriciated.

What i need to do is rename the contents of a folder that change daily then copy these files to a new destination.

There a 5 files that will need to be copied daily.

For example the 5 Actions that i will need

I need to copy
c:\soure\todays date 1.mp3 to c:\destination\AJSS1.mp3
c:\soure\todays date 2.mp3 to c:\destination\AJSS2.mp3
c:\soure\todays date 3.mp3 to c:\destination\AJSS3.mp3
c:\soure\todays date 4.mp3 to c:\destination\AJSS4.mp3
c:\soure\todays date 5.mp3 to c:\destination\AJSS5.mp3

The destination is always the same. its just the source file that changes but it is always from the same folder.

Would love to know if this is possible to run as a Bat file that will run after a FTP download.
I don't remember if it is possible to rename to an other path, and first quick tests fail,
but you can rename to an subfolder:

Test this with test files only!!!

1. create an new sub folder "destination" in your "c:\soure\"-folder
2. best copy brc32.exe to your "c:\soure\"-folder
3. go to your "c:\soure\"-folder
4. open DOS-Box and try this command line:

step by step to become familiar

brc32 /AUTONUMBER:1:1:S::10:0
Filename todays date 1.mp3 would be renamed to todays date 11.mp3
Filename todays date 2.mp3 would be renamed to todays date 22.mp3

brc32 /FIXEDNAME:AJSS /AUTONUMBER:1:1:S::10:0
Filename todays date 1.mp3 would be renamed to AJSS1.mp3
Filename todays date 2.mp3 would be renamed to AJSS2.mp3


Now the complete command for your issue:
destination-folder must exist!
brc32 /PATTERN:"*.mp3" /FIXEDNAME:\destination\AJSS /AUTONUMBER:1:1S:" ":10:3 /execute
Filename todays date 1.mp3 renamed to \destination\AJSS 001.mp3
Filename todays date 2.mp3 renamed to \destination\AJSS 002.mp3
Filename todays date 3.mp3 renamed to \destination\AJSS 003.mp3

Next use an DOS command to move all files from sub folder \destination to C:\destination
move destination\*.mp3 C:\destination







Some formating ideas:

brc32 /AUTONUMBER:1:1:S:-:10:3
Filename todays date 1.mp3 would be renamed to todays date 1-001.mp3

brc32 /PATTERN:"*.mp3" /FIXEDNAME:AJSS /AUTONUMBER:1:1:S:" ":10:0
Filename todays date 1.mp3 would be renamed to AJSS 1.mp3

brc32 /PATTERN:"*.mp3" /FIXEDNAME:AJSS /AUTONUMBER:1:1:S:-:10:2
Filename todays date 1.mp3 would be renamed to AJSS-01.mp3

brc32 /PATTERN:"*.mp3" /FIXEDNAME:AJSS /AUTONUMBER:1:1:S:" ":10:3
Filename todays date 1.mp3 would be renamed to AJSS 001.mp3


If one don't want to move but copy, do this:
- create an other folder
- copy the files to rename first
- go to that other folder
- rename the copies
Now you have both: original and renamed


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


Return to BRC Support


cron