K-TOOLS UTILITIES Copyright (c) 1994 by Rob McDonell, ARK ANGLES All Rights Reserved SYNCH - Synchronise Directories 1.1 This utility synchronises the contents of two drives or directories by copying any new or updated files in both directions. This is particularly useful for updating information between two computers connected through a null modem cable. It works like the XCOPY command with the /S parameter except that it will only copy new or updated files, and performs the copy in both directions. It is equivalent to running SAFECOPY for each directory and its subdirectories. USEAGE: SYNCH directory1 [directory2] [options] where: directory1 is the first drive or directory directory2 is the second drive or directory, or the current directory if blank options is any of the following: /1 copy only from directory1 to directory2 /2 copy in both directions (default) /d synch directory only, not subdirectories /s synch directory and all subdirectories (default) /t synch subdirectories only, not directory itself Either directory will be created if it does not already exist, as will any subdirectory. EXAMPLES: SYNCH C:\DIR1 D:\DIR2 will synchronise the contents of the DIR1 directory on C: with the DIR2 directory on D: SYNCH C:\DIR1 A:\ will synchronise the contents of the DIR1 directory on C: with the root directory on A: SYNCH B:\ will synchronise the contents of the root directory on B: with the current directory SYNCH C:\DIR1 A:\ /1 will ensure that drive A: contains all the latest files from C:\DIR1 and A: SYNCH C:\DIR1 D:\DIR2 /D will synchronise the files in C:\DIR1 and D:\DIR2 but not their subdirectories SYNCH A:\ B:\ /T will synchronise the contents of drives A: and B: except for the root directories Run SYNCH with no parameters or "?" or "/?" to display simple help and registration information. SYNCHRONISING TWO DISKETTES IN THE SAME DRIVE: The contents of two diskettes can be synchronised in the same drive by using a temporary directory on a second drive as an intermediary. For example, to synchronise two diskettes in drive A: 1. Put the first diskette into A: and synchronise it with the temporary directory SYNCH A:\ C:\TEMPDIR 2. Put the second diskette into A: and synchronise it with the temporary directory SYNCH A:\ C:\TEMPDIR 3. Put the first diskette back into A: again and synchronise it with the temporary directory one more time SYNCH A:\ C:\TEMPDIR Note that you do not have to create C:\TEMPDIR prior to running SYNCH, however you will have to delete it afterwards. This is easiest with a complete directory tree removal program such as RMTREE also from K-Tools Utilities. REGISTRATION: This program is part of the K-TOOLS UTILITIES shareware package. To keep using it after the 60 day trial period you must register, which costs only A$10 per utility or A$29, US$22, 15, Dm40, 2400 for the whole collection. Author: Rob McDonell ARK ANGLES P O Box 190 (61 Oaklands Rd) Hazelbrook NSW 2779 AUSTRALIA Phone: Intl+61-47-588100 Fax: Intl+61-47-588638 Compuserve: 100237,141 Internet: 100237.141@compuserve.com