You can use a script that uses Robocopy, a command line utility that is included in Windows 10. For the script shared below, you just need to add the frequency in days, path to the folder from where you want to move the files, and the path for the folder you want to move the files to. You can then set up a task in the Task Scheduler to run the script every day at a particular time. How to Create a Script to Move Files on Windows 10
- Type Notepad in the search box on the Toolbar.
- Select Notepad from the search options.
- Type or copy-paste the following script in the Notepad. Replace the number of days, destination folder, and source folder as per your needs.
@echo off
set X=
set “source=C:<Source Folder Path>” set “destination=D:<Destination Folder Path>” robocopy “%source%” “%destination%” /mov /minage:%X% exit /b - Open the File menu.
- Click Save as to save the file.
- Select All files to change the default file type.
- Type
.BAT in the File name field to save the file as a .BAT file. - Click Save to save the file. How to Create a Task to Run the File
- Type Task Scheduler in the search box on the Toolbar.
- Select Task Scheduler from the search options.
- In the right pane, click Create Task.
- Type a name for the task.
- Click Triggers to open the Triggers tab.
- Click New to create a Trigger.
- In the settings, select the frequency to trigger the task. In this example we have selected Daily.
- Set up the time when the task will be triggered.
- Click OK to finalize the trigger settings.
- Click Actions to connect an action to the trigger.
- Click New on the Actions tab.
- Click Browse to find the .BAT file previously created.
- Click OK to save the new action.
- Click X to close the Task Scheduler.