|I am trying to write a batch script that moves all files from one network folder to another network folder. On the destination folder, I need to delete any files older than 3 days from after the move occurred. So if they files were moved on 1/8/07, they need to be deleted after 1/11/07. Here's what I have so far:|
@echo on&setlocal ENABLEDELAYEDEXPANSION
echo %*|fs /c:"Database backed up:"||exit 1
move x:\*.* y:\
The move is not working with this script, and I didn't know how to acquire the date stamp for the deletion. Thanks!!