todayprefix file...
When the SPACE key is pressed during command execution, the resulting file is 201501282359 - filename.ext .
When the SHIFT key is pressed during command execution, the resulting file is 2015-01-28 - filename.ext .
When the LEFT CONTROL key is pressed during command execution, the resulting file is 28012015 - filename.ext .
When the RIGHT CONTROL key is pressed during command execution, the resulting file is 28-01-2015 - filename.ext .
The given file is renamed, if there is not already a file with the same name.
Files having already a date prefix of another date are renamed to the current date.
Examples (executed on January 28th, 2015) without pressing any other key:
Reservation.docx ==> 20150128 - Reservation.docx 20150115 - ToDo List.xlsx ==> 20150128 - ToDo List.xlsx 201501151345 - Image.png ==> 20150128 - Image.png 2015-01-15 - Report.docx ==> 20150128 - Report.docx 15012015 - Logbook.docx ==> 20150128 - Logbook.docx 15-01-2015 - Agenda.docx ==> 20150128 - Agenda.docx
Examples (executed on January 28th, 2015, 23:59) when pressing the SPACE key:
Reservation.docx ==> 201501282359 - Reservation.docx 20150115 - ToDo List.xlsx ==> 201501282359 - ToDo List.xlsx 201501151345 - Image.png ==> 201501282359 - Image.png 2015-01-15 - Report.docx ==> 201501282359 - Report.docx 15012015 - Logbook.docx ==> 201501282359 - Logbook.docx 15-01-2015 - Agenda.docx ==> 201501282359 - Agenda.docx
Examples (executed on January 28th, 2015) when pressing the SHIFT key:
Reservation.docx ==> 2015-01-28 - Reservation.docx 20150115 - ToDo List.xlsx ==> 2015-01-28 - ToDo List.xlsx 201501151345 - Image.png ==> 2015-01-28 - Image.png 2015-01-15 - Report.docx ==> 2015-01-28 - Report.docx 15012015 - Logbook.docx ==> 2015-01-28 - Logbook.docx 15-01-2015 - Agenda.docx ==> 2015-01-28 - Agenda.docx
Examples (executed on January 28th, 2015) when pressing the LEFT CONTROL key:
Reservation.docx ==> 28012015 - Reservation.docx 20150115 - ToDo List.xlsx ==> 28012015 - ToDo List.xlsx 201501151345 - Image.png ==> 28012015 - Image.png 2015-01-15 - Report.docx ==> 28012015 - Report.docx 15012015 - Logbook.docx ==> 28012015 - Logbook.docx 15-01-2015 - Agenda.docx ==> 28012015 - Agenda.docx
Examples (executed on January 28th, 2015) when pressing the RIGHT CONTROL key:
Reservation.docx ==> 28-01-2015 - Reservation.docx 20150115 - ToDo List.xlsx ==> 28-01-2015 - ToDo List.xlsx 201501151345 - Image.png ==> 28-01-2015 - Image.png 2015-01-15 - Report.docx ==> 28-01-2015 - Report.docx 15012015 - Logbook.docx ==> 28-01-2015 - Logbook.docx 15-01-2015 - Agenda.docx ==> 28-01-2015 - Agenda.docx
When the setting SEPARATOR is set to False, no separator between the date and the file is put.
Default is SEPARATOR=True what does mean that the dash ( - ) is put between the date and the file as demonstrated in the examples above.
# # todayprefix.cfg - Configfile for todayprefix # # [00] 11.02.2019 CWa Initial Version # SEPARATOR=False
This is free software; see WA2LWinTools/man/COPYING for copying conditions. There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.