strugling creating simple batch with the command line

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

strugling creating simple batch with the command line

Postby spacedude » Thu Dec 13, 2018 5:32 pm

Hi all
I want to use the command line to rename test.txt to it's folder name, for example:

I want this: "c:\folder1\abc\test.txt" to be changed to: "c:\folder\abc\abc.txt"

Thnaks
spacedude
 
Posts: 3
Joined: Thu Dec 13, 2018 5:24 pm

Re: strugling creating simple batch with the command line

Postby spacedude » Thu Dec 13, 2018 7:22 pm

I mange to make something that worked almost perfect.

this is the command:
BRC64 /PATTERN:"*.TXT" /REMOVEFIRSTN:5 /APPENDFOLDER:S::1 /EXECUTE

Can I add an exceptional command if the file is already exitsts? Otherwise It's messing with file name of the *.TXT
spacedude
 
Posts: 3
Joined: Thu Dec 13, 2018 5:24 pm

Re: strugling creating simple batch with the command line

Postby therube » Thu Dec 13, 2018 8:43 pm

Are you looking to remove the name part entirely?
If so, REMOVENAME.

Then:

Code: Select all
NODUP - Prevent duplicate names by appending numeric suffixes if required
therube
 
Posts: 1314
Joined: Mon Jan 18, 2016 6:23 pm

Re: strugling creating simple batch with the command line

Postby spacedude » Thu Dec 13, 2018 10:23 pm

No,
If the file has been modified already and i execute the batch again (by mistake) it won't do anything.
Like NODUB but with out adding "numeric suffixes if required"
Just skip the mistaken action.

Thanks
spacedude
 
Posts: 3
Joined: Thu Dec 13, 2018 5:24 pm


Return to BRU Support