Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1065.Batch file rename -- How to rename files to year month from the epoch time in file content?

User: davidlim -- 2013-03-18          << 1064  1066 >>
Hits: 1730
Type: Batch file rename   
Search all Batch file rename examples
Description:
hi, i'm looking at a way to batch rename HTMl files with the following content in each html:

<SCRIPT language="JavaScript">document.write(format_date(1364400000));</SCRIPT>

and convert the epoch time into readable format.

1364400000 translates to Thu Mar 28 2013 00:00:00 GMT+0800

target filename would just be 1303_filename.html (yymm_filename.html)

thanks.
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. open "Tools->Batch Runner" menu
2. drag multiple html files to "batch runner" window
3. check "set output filename option", and change the following entry to:

4. check if the "ouptut file" column has the correct new filename.
5. click "File Rename", done.

How to batch change file content to readable format:
use "replace pioneer" to search for:

and replace with:

and click "batch..." for multiple files

Screenshot 1:  Batch_Runner_Window


Similar Examples:
How to rename files to the first and last line of file contents? (74%)
How to rename mutiple files with the 3rd and 4th line in file content? (71%)
How to rename files to the last 10 chars of 3rd line of file content? (70%)
How to batch rename files to the first 8 characters of the second line of file content? (68%)
How to batch rename files with the first word of file contents? (66%)
How to batch rename text files with random line from file contents? (65%)
How to batch rename files to the specified pattern found in file content? (64%)
How to batch rename file extension to the letter 8-10 of 2nd line of file content? (62%)

Check Demo of Batch file rename
Keywords:
java  mfi  epoch  javascript  language  translate  year  month  rename html files  rename html  batch convert epoch time  epoch time batch  epoch batch file  rename html files with file content  rename files epoch time  epoch time batch rename  rename files from month to month  batch to rename file with month