User: editor -- 2008-06-27 << 203 205 >> |
Hits: 6327 |
Type: Batch file rename |
Search all Batch file rename examples |
Description: |
How to rename many files with the last modified date of the file? |
Input Sample: |
Old files: filea.txt fileb.txt filec.txt |
Output Sample: |
New files: 20080606_01.txt 20080609_02.txt 20080603_03.txt |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
Need to make a batch file and run, procedures: 1. open menu "File->Load->Dos command output" 2. enter "Dos command" as: dir *.txt, and select 'working directory, and click 'ok', all files will be read 3. ctrl-h open replace dialog * set 'Replace Unit' to 'Line' * set 'search for pattern': * uncheck '[ ]Print Unmatched Unit' option * set 'replace with pattern': 4. click 'Replace' , and save as a.bat 5. copy a.bat to correct directory and run, ok£¡ Note: For filenames containing spaces, the step need to revised. ============= Example of a.bat: rename correction.txt 20071119_1.txt rename country_id.txt 20071217_2.txt rename encode.txt 20071119_3.txt Note: following procedure is recommended for newer version: http://www.mind-pioneer.com/services/276_Batch_file_rename.html Formula: |
Download Script: scripts/204.rst.zip |
Screenshot 1: Batch_Runner_Window |