disturbedone
Vendor
Hi, I'm a complete newbie with scripting but I found a script online that will auto delete files that are older than 7 days but it's only 99% of what I need.
The scenario is I have an FTP server that I only want to keep files for 7 days, allowing users to download within that time and then they automatically get deleted. The script has the dateadd command but I've found that this looks at the Modified Date that Windows applies, not the Create Date. For example, a file from years ago that is copied into the FTP directory is allocated a new Create Date but the Modified Date is still years old so when the script runs at night it is deleted on it's first day.
Is there another command or any other way of getting a script to look at the correct date?
Any assistance is appreciated.
Cheers
The scenario is I have an FTP server that I only want to keep files for 7 days, allowing users to download within that time and then they automatically get deleted. The script has the dateadd command but I've found that this looks at the Modified Date that Windows applies, not the Create Date. For example, a file from years ago that is copied into the FTP directory is allocated a new Create Date but the Modified Date is still years old so when the script runs at night it is deleted on it's first day.
Is there another command or any other way of getting a script to look at the correct date?
Any assistance is appreciated.
Cheers