You can use R to create a task and save it as a batch as @Waldi suggested. However, there is an easier and less labor-intensive way to solve this problem.
You can use xcopy
command of the windows by writing a batch file.
xcopy
copies the files or directory when there is a modification in the original source files. See for more details.
Here is an example of how you can run it with a batch file.
Copy, change the paths and paste the following code as an 'automatically copy modified.bat' file and click the batch file. It will open a Command prompt interface (CMD).
Keep the CMD window running, and you can get copies of the files from the source to the destination directory. when the source file is modified, the modified file will be copied to the destination folder.
As long as the command prompt is running, you will get the automatically modified copies to the destination you defined.
@echo off
:loop
REM Execute xcopy every 3 second
REM to change the second go to timeout
REM xcopy <Source> [<Destination>]
xcopy "C:\myfile.txt" "C:\newfolder\myfile.txt" /y
timeout /t 3
goto loop
If you want to run a batch in a silent and hidden way, you should check how to create a task scheduler with a batch file. This website explains some basic steps, you can check it out.