Folder Synchronize Command Script File Syntax  
Funduc Software, Inc
Copyright 1997-2000
http://www.funduc.com    http://www.searchandreplace.com
support@Funduc.com
    support@searchandreplace.com 

All commands are submitted to the Folder Synchronize program (foldsync.exe) via one or more configuration files from the command line. The syntax is:

     foldsync.exe <configuration file 1> <configuration file 2> ...

On the command line or in your .bat file surround the complete path specification to the program and/or your configuration file(s) with " if your paths have spaces.

The configuration files are ASCII text files (PC format). You may use any name you wish.

Listed below are the arguments the program recognizes. An example configuration file - foldsync.cfg - is included in the program .zip.

The ' character demarks comments. The program also ignores blank space lines.

For all 0 vs. 1 commands: 0 = No, 1 = Yes

[Directory Info]

 

Source=e:\funduc
Target=c:\funduc

A source & target path must be specified. Do NOT use " characters.

Destination=c:\results

If specified this is the path to copy the file(s) to instead of the Target= path. For example, if your synchronize choice determines that letter.doc would be copied from the Source to the Target, if a path is specified in Destination= , letter.doc would be copied there instead.
 

IncludeMask=*.*
Exclude Mask=\fra\*\*.*

An Include Mask=*.* is the default. Specify the masks in an order that makes sense - Each mask overrides the previous one(s) so chose accordingly. Take care that an exclude mask does not supercede an include mask. Multiple Include= and Exclude= lines are permissible. Masks can also refer to subdir names. The syntax for this can be complex. Our Directory Toolkit utility has a complex builder that can be helpful for making model include/exclude specifications. All subdir specifications are relative Source= and Target=  
Example Mask Effect
Include Mask=*.i?? Include files ending with i followed by 3 characters
Include Mask=win.ini This would be found by the above.
Exclude Mask=moricons.dll Exclude this specific file.
Exclude Mask=\images\te*\ A wildcard (te*) to skip images\test, images\testing, etc.
Exclude Mask=\*\junk*\*\*.* Skips all files in any subdir junk* and all under that

 

 

 

[Options]

 

Log File=c:\foldsync.log

When a file is specified a report would be written.
 

Allow Cancel=0

To disallow the cancel button, turn it off by specifying 0. Default is 1 for permit cancel button.
 

Message=

Supply the text of your choice.
 

Confirm Updates=0

File updates will be preceded by a prompt if this is non-zero.
 

No Progress=0

A value of 1 turns off the progress meter. To make the operation totally silent, make this=1 and Confirm Updates=0.
 

Bitmap=

Specify a .bmp to use as a logo if you like. The bitmap is transparent, using the bottom left pixel as the transparent color.
 

Search Subdirectories=1

The default is 1 for search and process all subdirectories.
 

Synch Option=

Specify the synchronize operation to perform. If not specified, Synch Option=Compare is the default.  

Synch Option=Compare

Compares the two directories. A report should be used with this option

Synch Option=Synch

Synchronize both source and target. This adds new files to both directories and copies newer common files from either directory to the other.

Synch Option=Augment

Selecting this item will add new files from the source directory to the target directory.

Synch Option=Refresh

Updates only existing files from the source directory to the target directory.

Synch Option=Prune

First deletes files in the target directory that cannot be found in the source directory, then updates existing file, then add new files from the source directory to the target directory.

Synch Option=Identical

Deletes files in the target directory that were found in the source directory and were identical. If the date and time are the same the files are considered identical.