Batch script to move files older than 1 day
Posted: 26 May 2016 14:37
Hello all,
I've been trying to modify a windows batch script to move .txt files that are older than one day into a different folder, but have been unsuccessful. Could someone please help?
Here's what I've written so far:
It doesn't give me any errors, but it also doesn't move the files.... Any ideas?
I've been trying to modify a windows batch script to move .txt files that are older than one day into a different folder, but have been unsuccessful. Could someone please help?
Here's what I've written so far:
Code: Select all
forfiles -p "U:\My Documents\1. RPC\AutoMed Archive" -m *.txt -d -1 /c "cmd -c move @file U:\My Documents\1. RPC\AutoMed Archive\Problem Files\"
It doesn't give me any errors, but it also doesn't move the files.... Any ideas?