Synchronize Your Workspace from the Command Line

You can run workspace synchronization from the command line. Using the command line, you can create a script or an event in Windows Task Scheduler to automate workspace synchronization.

Note: By default, the file delete option is suppressed when synchronizing your workspace from the command line. This is to prevent any inadvertent loss of data. To enable file delete via the command line, you must edit the XML file and enable this functionality:
"<StandAloneOnlySettingDeleteFiles>=True
  1. Click Windows Start > Run, and then enter cmd in the Run dialog box.
  2. Change directories to the install directory for Autodesk Vault. By default, this path is C:\Program Files\Autodesk\Autodesk Vault [version]\Explorer.
  3. At the command line, type: Connectivity.WorkspaceSync.exe followed by the command line options, and then press Enter.

    Command

    Details

    -WA

    Use Windows authentication to log into the Vault server (optional).

    -Nserver\databasename

    The name of the server and the database to be synchronized (required).

    -VUusername

    The user name of the vault account. (This flag is optional if Windows authentication is used. It is required if the Windows authentication flag is not used).

    -VPpassword

    The vault account password (required unless password is blank).

    -S

    The full path to a valid synchronization settings file (optional). The synchronization settings file specifies the syncrhonization options. For more information on exporting a settings file, see Specify Workspace Sync Settings.

    -F

    The full path and file name for a report file (optional). The synchronization summary is written to the report file. If the report file already exists, the summary is appended to the contents of the existing file.

    Examples

    • Connectivity.WorkspaceSync.exe -Ndmserver\Vault -WA -S"C:\Synchronization Settings\Settings.xml" -FC:\temp\SyncReport.csv
    • Connectivity.WorkspaceSync.exe -Ndmserver\Vault -VUbkeaton -VPg3nEral27-S"C:\Synchronization Settings\Settings.xml" -FC:\temp\SyncReport.csv
    Note: Paths containing spaces must be inside of double quotes (for example, "C:\Synchronization Settings\Settings.xml").