0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Windowsでフォルダ同期を簡単に設定する

Posted at

とある事情でWindows 11環境であるフォルダを別のフォルダに定期的に同期する必要があったため、簡単に実現する方法がないかを調査した。

結論

以下のバッチファイルを作成して、タスクスケジューラで定期実行するように設定すればよい。

robocopy <コピー元> <コピー先> /COPY:DATSO /MIR /EFSRAW /NP /V /R:1 /W:1 /IT /LOG+:%~dp0\log.txt

参考

下記のサイトの解説がとてもわかりやすい。上記のバッチファイルでは、一般ユーザーの権限で実行できるように、いくつかのオプションを変更している。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?