PDA

View Full Version : RAW Command for copying local files to second folder?


colink
04-13-2017, 05:48 AM
Thanks for your help in correcting my syntax for deleting files on server >30 days
https://oss.azurewebsites.net/forum/flashfxp/general-discussion/16857-delete-older-files-schedule-new-post.html

What RAW commands would I need to copy files <7 days from one folder on my local drive to another folder?

Current location
C:\folder\folder-all

Copy to
C:\folder\folder-recent

bigstar
04-17-2017, 12:54 PM
# require local browser
/require local
#display progress box with ability to abort operation
/busybox
# change into desired folder
/cd C:\folder\folder-all\
# select all files modified within the last 7 days
/select -f * :age-7d
# copy selected to C:\folder\folder-recent\
/copyfile "%p%f" "c:\folder\folder-recent\%f"