CygNet Directory Sync Utility

The CygNet Directory Sync utility (CygNetDirectorySync.exe) compares file versions and replaces files based on selected criteria, such as file version, extension, etc. This utility does not compare file sets. As such, use the Microsoft Ccommand Comp utility to compare file lists. (Type Comp /? at a - Command Prompt for more information.) Unlike the CygNet Version Info utility, the CygNet Directory Sync utility does install CygNet files. For most update situations, such as installing patches or new upgrades, use the CygNet Host Updater instead.

Using CygNet Directory Sync

When you update any application-type file on your CygNet system, the services must be stopped and you must close or exit CygNet Host Manager.

Essentially, you will copy files that meet certain replacement criteria by first selecting from where the files are to be copied (Source (From) Directory) and then where the files are to be copied to (Target (To) Directory). Make sure that you have mapped the correct directory for the new files. The Process Source and Target Subdirectories options allow you to make sure that any subdirectories are also updated. A Last Results message pane tallies how many source and target files are processed and how many are replaced. The Failed Results message pane displays status text regarding file replacement activity.

Before replacing selected files, you will get a chance to see the list of files, based on the selection criteria, to be copied to their new target destination.

The CygNet Directory Sync utility is stored in the CygNet\Utilities directory (CDirectorySync.exe) on the host server. To start the utility, use Windows Explorer to browse to the directory and double-click the program icon.

Note: You can also set up this utility to be installed and launched (started) via CygNet Client Installer so that the application can be version managed. See Version Management for instructions on how to do this.

To Replace CygNet Files

  1. Navigate to the directory that you want to copy files from. Click on List to see the current files and directories. Click on Refresh File Lists to refresh the view of files. Depending on your criteria for file replacement, certain files will appear.
  2. Navigate to the directory that you want to copy files to. Click on List to see the current files and directories. Click on Refresh File Lists to refresh the view of files. Depending on your criteria for file replacement, certain files will appear.

CygNet Directory Sync utility

Click the thumbnail to see an example
CygNet Directory Sync utility

File Specs lists which file extensions are candidates for bulk change. If you decide to omit by deleting one or two extensions, make sure that when you add them back, you separate them with a semicolon (;). When you click Restore Default, the default types *.bat; *.ddl; *.dll; *.exe; *.ocx are available.

Files to Replace (From Source to Target) determines what kind of file replacement will occur.

Option Description

Replace All

Requests that all file versions from the source directory replace previous file versions in the target directory.

Replace Older

Requests that newer file versions from the source directory replace older file versions on the target directory.

Replace Newer

Requests that previous versions from the source directory replace newer file versions on the target directory.

Replace If Different

Requests that any file version in the target directory that is different from the file version in the source directory be replaced.

  1. Enable the Register Files check box to make sure that the files are written to the Microsoft Windows registration directory.
  2. When satisfied with the list of files to be written to the target directory, make sure that the appropriate files and file types have been selected, click Select All. (You can also click on Deselect All to clear the files or use Invert Selection to limit the selection of files.)
  3. To replace the files, click Replace Selected Files. A message appears asking if you want to continue with the file replacement. Click Yes. The Failed Results pane shows the status of the file replacement.

Back to top