DECUS Essential Tools Collection, 1996 for OpenVMS Alpha and OpenVMS VAX (VS0174)
COMPARE_DIR written by Tim Fogarty
--------------------------------------------------------------------------------
COMPARE_DIR allows users to compare the contents of two directories. The
directories may be on the same node, or on different nodes.
COMPARE_DIR can be used to show which files are missing from either directory.
COMPARE_DIR can be used to show which files exist in both directories, but
have different sizes, dates, or version numbers.
COMPARE_DIR can be used to create a COM file to copy missing files from one
directory to another.
--------------------------------------------------------------------------------
To compare directories over different nodes, COMPARE_DIR_REMOTE.EXE must
be installed on the remote node and an NCP object COMPARE_DIR_REMOTE must
be defined.
To install, edit DISTRIBUTION_LIST.DAT and add the name of each remote
node to which you want the software distributed to. You should only need
to provide one node name per cluster. List each node name one per line.
It is assumed that you have proxy write access to SYS$SYSTEM, SYS$MANAGER,
and SYS$HELP on each remote node. Then execute MAKE.COM on your local node.
MAKE.COM will perform the following functions:
Create help library from COMPARE_DIR.HLP
Compile COMPARE_DIR.FOR
Compile GET_FILE_INFO.FOR
Compile COMPARE_DIR_REMOTE.FOR
Compile utility library GEN_CLI$SUB.FOR
Create object library GEN_CLI$SUB.OLB
Link COMPARE_DIR
Link COMPARE_DIR_REMOTE
Distribute necessary files to remote nodes
After distributing the files to the remote node, you must then log onto each
node and perform the following.
1) add the following line to SYS$MANAGER:SYLOGIN.COM on each node
$ set command SYS$MANAGER:compare_dir
or you may choose to add it permanently to SYS$LIBRARY:DCLTABLES.EXE
2) add the following line to SYS$MANAGER:SYLOGICALS.COM on each node
$ @SYS$MANAGER:install_hlp sys$help:compare_dir.hlb
3) execute COMPARE_DIR-NCP_SET_OBJ.COM once on each node
(this file can then be deleted)
--------------------------------------------------------------------------------
It is assumed that COMPARE_DIR.EXE will be placed in SYS$SYSTEM. If you
change this, then you must edit COMPARE_DIR.CLD and modify the IMAGE statement.
It is assumed that COMPARE_DIR_REMOTE.EXE will be placed in SYS$SYSTEM. If
you change this, then you must redefine the NCP object COMPARE_DIR_REMOTE.
--
Tim Fogarty (fogarty@netcom.com)
ftp://ftp.netcom.com/pub/fo/fogarty/home.html
Click on FTP to download from the FTP archives.
![[FTP]](http://www2.encompassus.org/hidedecus/graphics/i_ftp.gif)