226
Finished Programs / DONE: Tally folder contents by file date
« Last post by nkormanik on September 22, 2018, 08:02 PM »Suppose we have a folder with 100 files.
Objective is to create a text file with a list of dates and tally of those dates based on the 100 files.
Example:
2018-09-22 7
2018-09-19 8
2018-09-14 11
...
2018-09-3 1
Space separator between date and tally number.
No spaces within date.
Result can be sorted, or not. Preference is to sort by date.
File name output should be same as folder name. Plus .txt.
No need for GUI. Command-line preferred, for creation of batch files (say, acting on lots of different folders).
Resultant .txt file should be created in same folder as executable, wherever user wants to keep that.
Parameter after executable should be folder path where files reside.
Example:
Tally_by_date.exe "C:\Program Files\My Program 123"
Use of piping might be okay.
Example:
Tally_by_date.exe "C:\Program Files\My Program 123" >> "My Program 123"
Any help greatly appreciated.
Thanks!
Nicholas Kormanik
Objective is to create a text file with a list of dates and tally of those dates based on the 100 files.
Example:
2018-09-22 7
2018-09-19 8
2018-09-14 11
...
2018-09-3 1
Space separator between date and tally number.
No spaces within date.
Result can be sorted, or not. Preference is to sort by date.
File name output should be same as folder name. Plus .txt.
No need for GUI. Command-line preferred, for creation of batch files (say, acting on lots of different folders).
Resultant .txt file should be created in same folder as executable, wherever user wants to keep that.
Parameter after executable should be folder path where files reside.
Example:
Tally_by_date.exe "C:\Program Files\My Program 123"
Use of piping might be okay.
Example:
Tally_by_date.exe "C:\Program Files\My Program 123" >> "My Program 123"
Any help greatly appreciated.
Thanks!
Nicholas Kormanik

Recent Posts