It is currently Mon 22 Oct 2018 3:09 pm

All times are UTC + 7 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Guide to use Bulk Rename Command (BRC) with SendTo
PostPosted: Thu 24 Nov 2016 9:21 pm 
Offline
Site Admin

Joined: Fri 01 May 2009 8:55 pm
Posts: 2097
1. BRC can't input as a fully qualified path name.
2. You have to split drive letter + path and use with /DIR
3. You have to split filename + extension and use with /PATTERN
4. For working with multiple files selection and SendTo, we need to loop process one by one.

Here is the example for rename files to title case:
Code:
@echo off

set brc="C:\winutil\Bulk Rename\BRC64.exe"

for %%I in (%*) do (
    %brc% /DIR:"%%~dpI" /PATTERN:"%%~nxI" /IGNOREFOLDERX /CHANGECASE:T /EXECUTE
)

pause


%* = represents all arguments passed to a batch file.
%%I = temporarily parameter variable.
%%~dpI = drive and path of each argument.
%%~nxI = filename and extension of each argument.

Modifiers with batch parameters
https://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/percent.mspx


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 7 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: