Command Syntex

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

Command Syntex

Postby Sudip » Wed Nov 18, 2015 9:30 am

Sir,
I have been using Bulk Rename Utility for past few years. Recently I downloaded BRC for a specific reason. I have one specific questions for the learned moderators :
I have BRC into my C:\BRC directory.
I have display a few files out of many, on my C:\Misc directory as below:
18/11/15 13:29 <DIR> .
18/11/15 13:29 <DIR> ..
12/09/15 16:58 64,104 Writer.Exe
17/10/15 15:11 2,815,592 Test.Cmd
I want to change Creation Time, Modified Time and Last Access Time of these files to:
18/11/15 00:00
So I need proper and full command syntex on this.
Kindly help me Sir.
Thank you in advance.
Sudip
 
Posts: 3
Joined: Wed Nov 18, 2015 9:06 am

Change file date/time to a wanted date.

Postby Stefan » Wed Nov 18, 2015 7:58 pm

Hi Sudip,

PLEASE use a more descriptive subject for your thread (I have seen that to late, else I didn't had answered at all)


you know BRC do modify NAMEs only, not Meta-Data (but Attributes, perhaps)?


You may want to use a Tool like

Touch for Win32, Version 1.0
Freeware by Steve P. Miller (stevemil@pobox.com). Copyright 1997.
Visit http://pobox.com/~stevemil for the latest version and other utilities.


Sudip> I want to change Creation Time, Modified Time and Last Access Time of these files to:
Sudip> 18/11/15 00:00
Sudip> DD/MM/YY HH:MM


Use:
C:\Misc>touch /cma /D 11-18-15 /T 00:00 *.*
/D MM-DD-YY /T HH:MM






C:\Misc>touch /?

Touch for Win32, Version 1.0
Freeware by Steve P. Miller (stevemil@pobox.com). Copyright 1997.
Visit http://pobox.com/~stevemil for the latest version and other utilities.

Usage: touch [/s] [/h] [/p] [/q] [/v] [/c] [/m] [/a] [/r file]
[/d mm-dd[-[cc]yy]] [/t hh[:mm[:ss[.ms]]]] filespec ...

/s Process subdirectories.
/h Process hidden/system files/directories.
/p Prompt for each file (Yes/No/All/Quit). Ignored in view mode.
/q Quiet mode; Only display errors; Ignored in view mode.
/v View mode; Display times rather than set times.
/c View/set created time.
/m View/set modified time; Default if /a and /c are not specified.
/a View/set accessed time.
/r Reference file; Use this file's date and time to set other files.
/d Date: month, day, century, year.
/t Time: hour (0-24), minutes, seconds, milliseconds.

In view mode (/v), the /p, /q, /r, /d, and /t options are ignored.
In set mode, the default is to use the current date and time.
Use the /r, /d, and/or /t options to override the default set time.
The century (cc) is assumed to be 19 for years 69-99, and 20 for years 00-68.



Thank you very much, Steve P. Miller, works perfect!



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

Re: Change file date/time to a wanted date.

Postby Sudip » Fri Nov 20, 2015 1:07 am

Stefan wrote:Hi Sudip,
PLEASE use a more descriptive subject for your thread (I have seen that to late, else I didn't had answered at all)
you know BRC do modify NAMEs only, not Meta-Data (but Attributes, perhaps)

Stefab Sir,
Being a below average user of computer, I am totally ashamed of myself. I could not express all that I wanted to convay Sir. Therefore, I beg of your unconditional pardon for my foolishness Sir.
I am again trying to explain as below :
I have display a few files out of many, on my C:\Misc directory as below:
18/11/15 13:29 <DIR> .
18/11/15 13:29 <DIR> ..
12/09/15 16:58 0,064,104 Writer.Exe
17/10/15 15:11 2,815,592 Test.Cmd
I want to change File names and Attributes(Creation Time, Modified Time, Last Access Time) of these files to:
18/11/15 00:00 Bombay.Exe
16/11/15 12:15 Formula.Txt

As instructed by you I shall use Touch software to update date & time if this is not possible in BRC.
Kindly help me Sir.
Thank you in advance.
Sudip
 
Posts: 3
Joined: Wed Nov 18, 2015 9:06 am

Set Creation Mod Acc Date, Write Date as file name

Postby Stefan » Fri Nov 20, 2015 10:26 am

 

I want to change File names and Attributes(Creation Time, Modified Time, Last Access Time) of these files to:
18/11/15 00:00 Bombay.Exe
16/11/15 12:15 Formula.Txt



I think you have to use a tool like Touch.exe to modify the real date of file. (Created Date, Modified Date, Accessed Date)



After that you can use BRC to get a date and set it as file name with:

/APPENDDATE:Type:Mode:Separator:Segment:Format:Custom

Type - The type of date to append, these being Created Date, Modified Date, Accessed Date or the date Now
Mode - Prefix, Suffix, or Both
Separator - the text to place between the name and the autodate text. Can be blank.
Segment - the text to place between each of the sub-elements of the text Can be blank.
Format - 1-9
Custom - A custom date format. This can be omitted if you are not specifying Format=10.



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

Try:

- Backup your files
- Open a command prompt (DOS-Box)
- Go to your folder
C:\Misc>touch.exe /cma /D 11-18-15 /T 00:00 *.*
C:\Misc>BRC32.exe /APPENDDATE:C:P:" ":"-":3:
REM /EXECUTE



Note: you have to prefix the executables with the path to there folder, like
C:\Misc>"C:\Temp\touch.exe" /cma /D 11-18-15 /T 00:00 *.*
C:\Misc>"C:\BRC\BRC32.exe" /APPENDDATE:C:P:" ":"-":3:



Note: you can not have '/' and ':' in file name, so use another sign, like I have used '-'



Note: check out the help for
/DIR:Directory - The directory to process
/PATTERN:<Patterns> - the patterns of files to match (with multiple values).




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

My TEST:


### Set Created Date, Modified Date, Accessed Date

My files:

Name / Size / Write / Access / Created
Otto1.jpg 0 24.05.2015 16:08 25.10.2015 09:15 15.04.2015 13:03 ----
Otto2.jpg 0 24.05.2015 16:11 25.10.2015 09:34 16.04.2015 10:11 ----
Otto3.jpg 0 24.05.2015 16:12 25.10.2015 09:51 16.04.2015 11:47 ----




REM TOUCH format is: /D MM-DD-YY /T HH:MM

C:\Misc>touch.exe /cma /D 11-18-15 /T 00:00 *.*
Processing: C:\Misc\*.*
Touching: Otto1.jpg
Touching: Otto2.jpg
Touching: Otto3.jpg



Result:

Name / Size / Write / Access / Created
Otto1.jpg 0 18.11.2015 00:00 18.11.2015 00:00 18.11.2015 00:00 -a--
Otto2.jpg 0 18.11.2015 00:00 18.11.2015 00:00 18.11.2015 00:00 -a--
Otto3.jpg 0 18.11.2015 00:00 18.11.2015 00:00 18.11.2015 00:00 -a--






### Test BRC to get Created Date

C:\Misc>BRC32.exe /APPENDDATE:C:P:" ":"-":3:
Processing Folder C:\Misc\
Filename Otto1.jpg would be renamed to 18-11-15-00-00-00 Otto1.jpg
Filename Otto2.jpg would be renamed to 18-11-15-00-00-00 Otto2.jpg
Filename Otto3.jpg would be renamed to 18-11-15-00-00-00 Otto3.jpg




### Use BRC to write Created Date as file name prefix with "/Execute" command:

REM 3 - DayMonthYearHourMinuteSecond
C:\Misc>BRC32.exe /APPENDDATE:C:P:" ":"-":3: /Execute
Processing Folder C:\Misc\
Filename Otto1.jpg renamed to 18-11-15-00-00-00 Otto1.jpg
Filename Otto2.jpg renamed to 18-11-15-00-00-00 Otto2.jpg
Filename Otto3.jpg renamed to 18-11-15-00-00-00 Otto3.jpg





------------------------------ More examples:


REM 10 - Custom "%d-%m-%Y %H%M%S"

C:\Misc>BRC32.exe /APPENDDATE:C:P:" "::10:"%d-%m-%Y %H%M%S" /Execute
Processing Folder C:\Misc\
Filename Otto1.jpg renamed to 18-11-2015 000000 Otto1.jpg
Filename Otto2.jpg renamed to 18-11-2015 000000 Otto2.jpg
Filename Otto3.jpg renamed to 18-11-2015 000000 Otto3.jpg



OR


REM 10 - Custom "%d.%m.%Y %H,%M,%S"

C:\Misc>BRC32.exe /APPENDDATE:C:P:"_"::10:"%d.%m.%Y %H,%M,%S" /Execute
Processing Folder C:\Misc\
Filename Otto1.jpg renamed to 18.11.2015 00,00,00_Otto1.jpg
Filename Otto2.jpg renamed to 18.11.2015 00,00,00_Otto2.jpg
Filename Otto3.jpg renamed to 18.11.2015 00,00,00_Otto3.jpg



###

Use
/PATTERN:".*jpg"
case sensitive! to process only some file types.


###


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

Re: Command Syntex

Postby Sudip » Fri Nov 20, 2015 12:22 pm

Stefan Sir,
I have copy/pasted your last post for experimenting and applying.
I think it shall give me results what I am asking.
However, in case of any problems Sir, I shall bother you again.
You are so kind Sir.
Thank you tons once again.
Sudip
 
Posts: 3
Joined: Wed Nov 18, 2015 9:06 am


Return to BRC Support