Exact Duplicates:
- How to write a batch file to delete the files which are 5 days or older from a folder?
- write a batch file to delete 6 days older files from a folder
- write a batch file to delete 5 daya older files from a folder
- How do I create a batch script that will delete a folder on a scheduled basis?
- write a batch file to remove the folders by date and time wise.
- write a script to delete files from a folder which are 5 days older than current date
I want write a batch file to delete folders, subfolders and temporary files on time basis.
The conditions are like this:
- I need to delete the file from folder one hour before to current running time.
- I want to get the current time from system and delete the one hour before files
- The file format is like this:
<file name> <date>
- The time format is
dd-mm-yyyy-hh-mm
ordd-mm-yy-hh-mm