How to automatically transfer files between folders on Windows and Mac

Do you want to automatically move files from one folder to another on your Windows or Mac computer ? You can do it quite easily following the instructions below.

How to automatically transfer files between folders on Windows and Mac

How to automatically transfer files between folders on Windows and macOS

On Windows

You can create a batch script that automatically transfers files from the source directory to the destination location. This script can check the “age” of files to ensure your files are only moved after a certain number of days or months have passed since they were created.

Don't worry if you've never written a batch script before. In fact, to create a script for this task, all you need to do is copy & paste the code below, then select the folder. It's done.

Step 1: Write a script to automatically transfer files

1. Open the Start menu , find Notepad and open it.

2. Paste the following script into a new Notepad document.

@echo off
set X=Days
set "source=SourceFolder"
set "destination=DestinationFolder"
robocopy "%source%" "%destination%" /mov /minage:%X%
exit /b

3. In the script above, replace Days with the number of days that the above script will transfer your file (the age of the file) then replace SourceFolder with the path to your folder location, replace DestinationFolder with the path to the file location is transferred.

4. Click the File menu and select Save As .

5. Select All Files from the Save As drop-down menu, enter a file name, add .bat at the end of the file name field, and click Save to save the file.

How to automatically transfer files between folders on Windows and Mac

The Batch Script is now ready.

Step 2: Schedule the Batch script to automatically run

Double clicking on the newly created batch file will move all your files from the current folder to another folder. To automate this task, you need to put the file into an automated task.

Task Scheduler will help you do that. You can create a task in this utility application and have it run a script on a schedule of your choice.

Here's how to set up tasks in Task Scheduler:

  1. Open the Start menu , find Task Scheduler and open it.
  2. Click Create Task on the right to configure a new automated task.
  3. Enter a name for your task in the Name field .
  4. Click the Triggers tab at the top, then click New to add a new trigger.
  5. On the activation screen, select how often the script runs from the Settings section . You can then choose the script opening time in the right panel. Then, click OK below.
  6. Select the Actions tab and click New to add a new section.
  7. Make sure Start a program is selected in the drop-down menu: Action . Then, click the Browse button .
  8. Navigate to the location where you saved the batch script and select it.
  9. Click OK , then click OK again to save the task.

How to automatically transfer files between folders on Windows and Mac

Task Scheduler will run the batch script at the time and frequency you choose. When that happens, this script will start transferring files from the source directory to the destination location.

If you want to turn off automatic file transfer, open Task Scheduler , find the task in this list and click Delete on the right. This action clears your task and prevents the batch script from running automatically.

On macOS

Setting up automatic file transfers on macOS is relatively easy because you only need to use an application to write and schedule scripts to run on Mac.

Using the Automator app, you can create a Folder Action that helps transfer files between folders easily without user intervention.

  1. Open Automator on Mac.
  2. Click File > New , select Folder Action and click Choose to create a Folder Action in Automator .
  3. You will see the Folder Action receives files and folders added to menu appear at the top. Use it to select the source folder at the location where the file is moved.
  4. On the left side of the screen, under Actions , find the Move Finder Items action . Drag & drop it into the workflow on the right.
  5. In Move Finder Items on the right, select the destination folder from the drop-down menu. This is where the file is moved.
  6. Check Replace existing files if desired.
  7. Press Command + S , enter a name for the Folder Action and click Save .
  8. Close Automator .

How to automatically transfer files between folders on Windows and Mac

From now on, whenever you put a file in the source folder, Automator will move it to the destination folder. You don't need to press any keys or open any widgets. It all happens completely automatically.

Pay attention to the Downloads folder when using Automator tasks. Because most browsers often save temporary versions of files that are still being downloaded here, Automator will transfer half of the downloaded files. This action may cause download errors. To avoid this problem, you should set Desktop as the default download folder for your browser.

Above is how to automatically transfer files between folders on Windows and Mac. Hope the article is useful to you.

Sign up and earn $1000 a day ⋙

Advanced SystemCare 17 Free Review 2024 - Your Best PC Optimizer

Advanced SystemCare 17 Free Review 2024 - Your Best PC Optimizer

In an era where digital efficiency is paramount, Advanced SystemCare 17 Free emerges as a beacon for those seeking to enhance their PC's performance.

How to fix Outlook error 0x800CCC90 when receiving emails on Windows

How to fix Outlook error 0x800CCC90 when receiving emails on Windows

How to fix Outlook error 0x800CCC90 when receiving emails on Windows. When sending and receiving emails from Microsoft Outlook client, you may encounter error 0x800CCC90. Below is the original

Instructions for listening to music when folding the laptop on Windows 10

Instructions for listening to music when folding the laptop on Windows 10

Instructions for listening to music when folding the laptop on Windows 10. To help everyone easily follow the steps to listen to music after folding the laptop, today WebTech360

Summary of Movies & TV application shortcuts on Windows 10

Summary of Movies & TV application shortcuts on Windows 10

Summary of Movies & TV application shortcuts on Windows 10, Summary of Movies & TV application shortcuts on Windows 10 to bring you a great experience. Maybe

How to fix Messages Failed to Load error on Discord for Windows

How to fix Messages Failed to Load error on Discord for Windows

How to fix Messages Failed to Load error on Discord for Windows, Discord isn't fun if you can't read what other people write. Here's how to fix Messages error

How to display the This PC icon on the Windows 11 desktop

How to display the This PC icon on the Windows 11 desktop

How to display the This PC icon on the Windows 11 desktop, During the process of using Windows 11, many users need to access This PC (management).

Search tips and shortcuts on Windows 10

Search tips and shortcuts on Windows 10

Tips and search shortcuts on Windows 10, Search shortcuts in Windows 10 will help you operate and handle work faster. Below are all the search shortcuts

How to personalize the taskbar on Windows 11

How to personalize the taskbar on Windows 11

How to personalize the taskbar on Windows 11, Windows 11 gives you many new customization options, including personalizing the taskbar as you like. Join WebTech360

How to fix error 0xa00f4244 nocamerasareattached on Windows 10

How to fix error 0xa00f4244 nocamerasareattached on Windows 10

How to fix error 0xa00f4244 nocamerasareattached on Windows 10, 0xa00f4244 nocamerasareattached is one of the most common error messages on computers. Let's

How to find information in the Windows Registry quickly

How to find information in the Windows Registry quickly

How to find information in the Windows Registry quickly, Do you find it difficult to find information in the Windows Registry? So below are quick ways to find the registry

How to limit the number of failed login attempts on Windows 10

How to limit the number of failed login attempts on Windows 10

How to limit the number of failed login attempts on Windows 10. Limiting the number of failed password login attempts on Windows 10 helps increase computer security. Here's how

How to change mouse pointer color and size in Windows 10

How to change mouse pointer color and size in Windows 10

How to change mouse pointer color and size in Windows 10, Don't like the default mouse pointer size and color on Windows 10? Below are the ways to change

Instructions for recording videos and taking photos on Windows 11 without installing software

Instructions for recording videos and taking photos on Windows 11 without installing software

Instructions for recording videos and taking photos on Windows 11 without installing software. On laptops and PCs using Windows 11, users can record high-definition videos or take photos

How to create fake error messages in Windows

How to create fake error messages in Windows

How to create fake error messages in Windows, Windows can come up with some pretty creative error messages but why don't you try creating your own content for them to make fun of?

Ways to open Windows Tools in Windows 11

Ways to open Windows Tools in Windows 11

Ways to open Windows Tools in Windows 11, Windows Administrative Tools or Windows Tools are still useful on Windows 11. Here's how to find Windows Tools in Windows 11.

How to automatically transfer files between folders on Windows and Mac

How to automatically transfer files between folders on Windows and Mac

How to automatically move files between folders on Windows and Mac, Do you want to automatically move files from one folder to another on a Windows or Mac computer?

Windows 11: Everything you need to know

Windows 11: Everything you need to know

Windows 11: Everything you need to know, Windows 11 - Microsoft's next operating system has been leaked with a new interface, Start menu and many other improvements. Here it is

How to fix Windows Quick Assist not working error

How to fix Windows Quick Assist not working error

How to fix Windows Quick Assist not working error, Windows Quick Assist helps you connect to a remote PC easily. However, sometimes it also generates errors. But,

How to pin Word, Excel and PowerPoint files to the corresponding app icon on the Windows 11 taskbar

How to pin Word, Excel and PowerPoint files to the corresponding app icon on the Windows 11 taskbar

How to pin Word, Excel and PowerPoint files to the corresponding app icon on the Windows 11 taskbar, How to pin Office files to the taskbar icon on Windows 11? Invite

How to fix Bad System Config Info error on Windows 10

How to fix Bad System Config Info error on Windows 10

How to fix Bad System Config Info error on Windows 10, Bad System Config Info is a common Windows error code. Here's how to fix Bad System Config Info Win 10 error.