search
HomeComputer TutorialsComputer KnowledgeHow to have files automatically copied to another folder on Windows 11/10

How to have files automatically copied to another folder on Windows 11/10

Feb 19, 2024 am 11:24 AM
windowsfolderdata lostcopy to

In this article, we will show you how to automatically copy files to another folder on Windows 11/10. Creating backups is necessary to avoid data loss. Data loss can occur due to many reasons such as hard drive corruption, malware attack, etc. You can manually backup your data by using copy and paste method or using third-party tools. Did you know you can automatically back up data on your Windows computer? We'll show you how to do this in this article.

如何让文件自动复制到Windows 11/10上的另一个文件夹

How to make files automatically copied to another folder on Windows 11/10

How to automatically copy files and folders to another destination folder on Windows 11/10 using Task Scheduler? This article will provide you with detailed guidance.

Please follow the steps below:

  • Open Notepad
  • Write a script to copy files from one folder to another
  • Save Notepad file as batch file
  • Use Task Scheduler to call this batch file
  • Let's see how to do this.

    Open Notepad and create a batch file

    First, you need to create a script to copy the files in the source folder to the target folder. To do this, we will use the xCopy command, whose syntax is as follows.

    X复制“源文件夹的路径”“目标文件夹的路径”/e/y

    In the above command, the /e parameter is used to open all subfolders in the source folder. This parameter also copies empty subfolders.

    When Windows finds the same file in the target folder, an overwrite confirmation prompt will pop up. To avoid a large number of prompts, we can use the /y parameter to disable overwriting confirmation prompts.

    如何让文件自动复制到Windows 11/10上的另一个文件夹

    Make sure you specify the paths to the source and destination folders accurately when entering the command, otherwise the command will fail to execute. For example, to copy from "D:\The Windows Club\New Folders" to USB flash drive E, use the correct command.

    X复制“D:The Windows ClubNew Folders”“E:”/e/y

    如何让文件自动复制到Windows 11/10上的另一个文件夹

    Now, go to File>Save As. Name the file to save it and write .bat at the end of the file name. When finished, click Save.

    Use the task scheduler to call the batch file

    Now, the next step is to call the batch file using the task scheduler. The instructions below will guide you in doing this.

    如何让文件自动复制到Windows 11/10上的另一个文件夹

    Open the task scheduler. Expand the Task Scheduler Library folder. Now, right-click on the Task Scheduler Library folder and select New Folder. Name this folder "Custom Tasks" or give it a name of your choice.

    如何让文件自动复制到Windows 11/10上的另一个文件夹

    Now, right-click on the custom task folder or a folder you have created and select Create Task. Give your task a name, such as Copy Files under the General tab. Now, select the triggers folder and click New. Set the frequency of tasks according to your requirements. For example, if you want to automatically copy files every day, select Daily. When finished, click OK.

    如何让文件自动复制到Windows 11/10上的另一个文件夹

    Now, go to the Actions tab and click New. Select Start a program in the Action drop-down list. Click Browse and select the batch file from your computer. Click OK.

    如何让文件自动复制到Windows 11/10上的另一个文件夹

    An automated task has been created to copy your files from the source folder to the destination folder. But if you are a laptop user, this automatic task will only run when your laptop is connected to the charger. If your laptop is on battery, this task will not run. To prevent this from happening, go to the Conditions tab and uncheck the following checkbox:

    • Start the task only when the computer is on AC power
    • Stop if computer switches to battery power.

    This task will not run if your computer is in hibernation mode. To cause your computer to wake from sleep mode and run an automated task, select the Wake computer to run this task check box. Now, click OK.

    如何让文件自动复制到Windows 11/10上的另一个文件夹

    After performing the above steps, the task will be added to the custom tasks folder in Task Scheduler, and you will see its status as Ready. If the status shows Disabled, right-click and select Enable. From now on, the task will run at the desired time.

    Please note that if you create a task that automatically copies files to an external hard drive, the hard drive should be connected to your computer.

    that's all.

    How to copy files to other folders in Windows 11?

    The easiest way to copy files to another folder in Windows 11 is to use the copy and paste method. Select the files you want to copy and press Ctrl C key. Now, open the folder to which you want to copy these files. Once the folder is open, press Ctrl V key.

    How to repeat a task every day in Task Scheduler?

    To repeat a task in Task Scheduler every day, you must create a Daily trigger. When you create this trigger, set a time when you want the task to start. You can also set this setting if you want the task to repeat every other day, every 3 days, etc.

    Read next: Schedule Shutdown or Restart using the Task Scheduler in Windows.

    The above is the detailed content of How to have files automatically copied to another folder on Windows 11/10. For more information, please follow other related articles on the PHP Chinese website!

    Statement
    This article is reproduced at:每日运维. If there is any infringement, please contact admin@php.cn delete
    Fix the 'This Build of Vanguard Is out of Compliance” Error - MiniToolFix the 'This Build of Vanguard Is out of Compliance” Error - MiniToolApr 15, 2025 am 12:50 AM

    You may encounter the “this build of Vanguard is out of compliance” issue when attempting to launch Valorant on Windows 11. Why does the error message appear? How to get rid of the error message? This post from php.cn gives details.

    How to Download RTX 4050 Drivers on Windows 10/11?How to Download RTX 4050 Drivers on Windows 10/11?Apr 15, 2025 am 12:49 AM

    NVIDIA GeForce RTX 40 series GPU might not be a new thing to you. Compared with other top graphics cards, many of you may pay more attention to mid-end mainstream RTX 4050 for its acceptable price. Read through this guide from php.cn Website to get d

    KB2267602 Fails to Install: Here Is How to Fix It!KB2267602 Fails to Install: Here Is How to Fix It!Apr 15, 2025 am 12:48 AM

    KB2267602 is a protection or definition update for Windows Defender designed to fix vulnerabilities and threats in Windows. Some users reported that they were unable to install KB2267602. This post from php.cn introduces how to fix the “KB2267602 fai

    Two Ways to Reinstall Pre-installed Software in Windows 11Two Ways to Reinstall Pre-installed Software in Windows 11Apr 15, 2025 am 12:47 AM

    Do you know how to reinstall pre-installed software in Windows 11 if you need to do this? In this post, we will introduce two easy ways. In addition, if you want to recover files on your Windows computer, you can try php.cn Power Data Recovery.

    Fixed: Desktop and File Folders Do Not Refresh AutomaticallyFixed: Desktop and File Folders Do Not Refresh AutomaticallyApr 15, 2025 am 12:46 AM

    Windows Desktop or File Explorer or folder will automatically refresh itself when you make some changes to it. However, some Windows 11/10 users report that they encounter the “desktop and file folders do not refresh automatically” issue. This post f

    Fixed: There Is a Problem with This Windows Installer PackageFixed: There Is a Problem with This Windows Installer PackageApr 15, 2025 am 12:45 AM

    When you try to install a program on Windows 11/10, you may fail to install it and receive an error message - there is a problem with this Windows installer package. This post from php.cn helps you to fix it.

    Can Antivirus Scan Encrypted Files? Security vs. PrivacyCan Antivirus Scan Encrypted Files? Security vs. PrivacyApr 15, 2025 am 12:44 AM

    When you run antivirus software on your device, you likely expect it to scan all files and folders for viruses. However, one question arises: can antivirus scan encrypted files? This inquiry delves into the realm of security versus privacy. php.cn So

    Free Download or Update HDMI Video Drivers on a Windows PCFree Download or Update HDMI Video Drivers on a Windows PCApr 15, 2025 am 12:43 AM

    How to download HDMI video drivers on Windows? How to update HDMI drivers to the latest versions. You can find the ways here. In addition, you can try php.cn Power Data Recovery to get your lost and deleted files back if necessary.

    See all articles

    Hot AI Tools

    Undresser.AI Undress

    Undresser.AI Undress

    AI-powered app for creating realistic nude photos

    AI Clothes Remover

    AI Clothes Remover

    Online AI tool for removing clothes from photos.

    Undress AI Tool

    Undress AI Tool

    Undress images for free

    Clothoff.io

    Clothoff.io

    AI clothes remover

    AI Hentai Generator

    AI Hentai Generator

    Generate AI Hentai for free.

    Hot Article

    R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
    4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
    R.E.P.O. Best Graphic Settings
    4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
    R.E.P.O. How to Fix Audio if You Can't Hear Anyone
    4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
    WWE 2K25: How To Unlock Everything In MyRise
    1 months agoBy尊渡假赌尊渡假赌尊渡假赌

    Hot Tools

    SAP NetWeaver Server Adapter for Eclipse

    SAP NetWeaver Server Adapter for Eclipse

    Integrate Eclipse with SAP NetWeaver application server.

    Zend Studio 13.0.1

    Zend Studio 13.0.1

    Powerful PHP integrated development environment

    SublimeText3 English version

    SublimeText3 English version

    Recommended: Win version, supports code prompts!

    SublimeText3 Chinese version

    SublimeText3 Chinese version

    Chinese version, very easy to use

    Dreamweaver Mac version

    Dreamweaver Mac version

    Visual web development tools