That moved the newest file. I need it to move all the older files and leave the newest one alone.. Here is the other issue.. I want this setup as a scheduled task that will run daily. If I use -First 1 or -Last 1 in the script and there is only one file it will move that and then there will be no file in our master folder.
The topic ‘Move files based on date in filename’ is closed to new replies.