From c0cdb2ad99a1e2a6ade5ce76c91177a79258e669 Mon Sep 17 00:00:00 2001
From: Daniel Wilhelm
Example: -A simple locking facility – (Note: -FreeFileSync already has a more powerful directory locking mechanism -implemented that allows multiple writers in parallel)
+Shutdown PC after synchronization
+
+
+ ::start
+ FreeFileSync Batch
+ Job
"C:\Users\ZenJu\Desktop\SyncJob.ffs_batch"
::schedule
+ shutdown after 10 seconds
shutdown
+ /s /t 10
+
+
Example: +A simple locking facility – (Note: +FreeFileSync already has a more powerful directory locking +mechanism implemented that allows multiple writers in parallel)
+
:tryAgain
if not exist
\\share\folder\lock (
::create
- the lock
echo
+ the lock
echo
This is a lock file > \\share\folder\lock
::execute
the synchronization batch job synchronously
"C:\Program
Files\FreeFileSync\FreeFileSync.exe"
"C:\MySyncJob.ffs_batch"
del
\\share\folder\lock
) else (
::wait
- 5 seconds then try starting sync again:
choice
+ 5 seconds then try starting sync again:
choice
/C:AB /T:5 /D:A > NUL
goto tryAgain
)
+
When starting a batch file from RealtimeSync be sure to make synchronous calls to FreeFileSync only. This will prevent RealtimeSync from detecting changes while synchronization is still in progress.
-+
During execution of a Batch file a black console window is shown. You can hide this window by using the Visual Basic script "Invisible.vbs" @@ -70,7 +82,7 @@ implemented that allows multiple writers in parallel)
wscript C:\Program files\FreeFileSync\Invisible.vbs C:\MyBatchFile.cmd
-
+ Note: In
+ order for FreeFileSync to start handling DST and timezone
+ differences, an initial full synchronization is required.
+ Subsequent syncs will never show a time difference again. If
+ a FAT volume is scanned the first time by FreeFileSync this will
+ take longer than usual since additional meta data is written for
+ each file.
+
+
+