Share this article

Improve this guide

How to Create SyncToy Batch Script For Background File Sync

This requires just a single line of code

2 min. read

Updated onJune 24, 2024

updated onJune 24, 2024

Share this article

Improve this guide

Read our disclosure page to find out how can you help Windows Report sustain the editorial teamRead more

SyncToy is a legacy but useful tool that can sync files locally, and many are wondering how to make a SyncToy batch script. In this guide, we’re going to show you the best ways to do it.

How can I create a SyncToy batch script?

How can I create a SyncToy batch script?

Use Notepad

Do keep in mind that this script will sync all folder pairs. If you want to sync a specific folder pair, use the following code instead in step 2:

“C:\Program Files\SyncToy 2.1\SyncToyCmd.exe” -R “WindowsReport”

Replace WindowsReport with the name that matches your folder pair.

After you create a batch script, you just need to double-click to run it and SyncToy will sync your files in the background.

More advanced users can assign a keyboard shortcut to the script oruse Task Schedulerto run the script at the specified time of the day.

If you’re not familiar with SyncToy, it offers limited customization options, but you can easilychange folder path in SyncToyorexclude folders in SyncToyif needed.

It’s worth mentioning that this tool has its share of issues, and we already wrote aboutCannot access internal metadata error in SyncToyin our other guides.

More about the topics:Windows 11

Milan Stanojevic

Windows Toubleshooting Expert

Milan has been enthusiastic about technology ever since his childhood days, and this led him to take interest in all PC-related technologies. He’s a PC enthusiast and he spends most of his time learning about computers and technology.

Before joining WindowsReport, he worked as a front-end web developer. Now, he’s one of the Troubleshooting experts in our worldwide team, specializing in Windows errors & software issues.

User forum

0 messages

Sort by:LatestOldestMost Votes

Comment*

Name*

Email*

Commenting as.Not you?

Save information for future comments

Comment

Δ

Milan Stanojevic

Windows Toubleshooting Expert

Before joining WindowsReport, he worked as a front-end web developer. Now, he’s specialized in Windows errors & software issues.