Command Line Arguments

Top  Previous  Next

The applications Command Line Mode offers users the ability to configure a truly "hands-off" installation, where operation and distribution occurs from within an easily manageable, administrative environment.  This mode allows projects and jobs to be executed from logon scripts, system batch or command (CMD) files, detailed shortcuts, and shell commands.

 

Please Note:

 

1.For the Command Line Arguments described in this topic, note that close attention should be paid to capital letters versus lowercase letters.  Follow the format outlined in the examples provided.
2.Command Line Arguments can be added to a shortcut to Save-N-Sync.
3.All paths that are used in the command line should be surrounded by quotes (ie: "C:\Program Files"), especially if the path contains a space. Otherwise, the command will not register properly.
4.All paths that are used in the command line must be on the local system or on a non-password-protected network share.

 

 

Project and Job Configuration

-0, --project <file path>

 

Open a project upon starting Save-N-Sync.

 

Example:

 

-0 "C:\Program Files\Save-N-Sync\Test1.snc"

 

-1, --source <folder path>

 

Creates a new job upon starting Save-N-Sync using the specified source path.

 

NOTE: This argument REQUIRES the -2 or --target argument.

 

Example:

 

-1 "C:\My Documents"

 

-2, --target <folder path>

 

Creates a new job upon starting Save-N-Sync using the specified target path.

 

NOTE: This argument REQUIRES the -1 or --source argument.

 

Example:

 

-2 "D:\Backup\My Documents"

 

-o, --opmode <0/1/2/3>

 

Creates a new job upon starting Save-N-Sync using the specified scan mode.

 

NOTE: This argument REQUIRES both the -1 and -2 arguments (or the --source and --target arguments).

 

Modes

0 - Standard Mode
1 - Bi-Directional Mode
2 - Standard Mode w/ Deletions
3 - Standard Mode w/ Exact Match

 

Example:

 

-o 3

 

-i, --subfolders <t/f>

 

Creates a new Job upon starting Save-N-Sync. If true, the option for including subfolders will be enabled for the job.

 

NOTE: This argument REQUIRES both the -1 and -2 arguments (or the --source and --target arguments).

 

Example:

 

-i t

 

 

 

Automation Options

-a, --autorun

 

If on the command line with a valid project or a valid job configuration, the specified job or project will be started immediately after Save-N-Sync opens. This will result in a single scan only (equivalent to the Run Now command).

 

Example:

 

-a

 

-as, --autoschedule

 

If on the command line with a valid project or a valid job configuration, the specified job or project will be started immediately after Save-N-Sync opens and ran according to its set schedule (equivalent to the Run Schedule command).

 

Example:

 

-as

 

-m, --hideduringrun

 

If on the command line with a valid project or a valid job configuration AND the -a or --autorun argument, the specified job or project will be started immediately after Save-N-Sync opens and hidden from view.

 

Example:

 

-m

 

-z, --closeafterrun

 

If on the command line with a valid project or a valid job configuration AND the -a or --autorun argument, the specified job or project will be started immediately after Save-N-Sync opens and when complete, it will close.

 

Example:

 

-z

 

 

 

Miscellaneous Options

-h, --help

 

Displays information on Save-N-Sync's command line information.

 

-si, --systeminfo

 

Displays information on the system where Save-N-Sync is installed.

 

-v, --version

 

Displays version information for Save-N-Sync.

 

-u

 

Change Save-N-Sync's look and feel to that of the operating system.

 

 

 

Example Command Lines

 

-0 "C:\Program Files\Save-N-Sync\Test.sns" -a -z

 

Automatically opens the "Test.sns" project, starts running it once Save-N-Sync opens. Upon completion of the project, Save-N-Sync will exit.

 

-1 "C:\My Documents" -2 "D:\Backup\My Documents" -i t -o 1 -a -m -z

 

Upon start of Save-N-Sync, creates a new job using "C:\My Documents" as the source folder, "D:\Backup\My Documents" as the target folder, include subfolders is set to on and the scan mode is Bi-Directional. Save-N-Sync will automatically run this job and will shutdown on completion. The entire application will be hidden from view while it is running.