Information about me and my services Download free programs Goto homepage of Jeroen Kessels, internet engineer Hobby area Email, address, and phone information Copyright 2005 J.C. Kessels Goto homepage of Jeroen Kessels, internet engineer Email, address, and phone information


CopyNew v4.2


A very handy little utility that will determine which files have changed. It will detect any changes made to files on harddisk, and copy all changed files to another drive or directory.

  • Synchronise harddisks of two computers.
  • Synchronise harddisk with a network disk.
  • Create archive (zip, arj) containing changed files only.
  • Highly configurable.
  • Easy to automate.
 *  Download copynew v4.2 for Windows 95/98/NT/2000/XP/Vista/2008 (171kb)
 *  Download copynew sources v4.2 (37kb)

I have a workversion of my websites locally on my PC. Once a day (or so) I upload all the changes to the servers. I used to have to upload the entire site, having forgotten exactly which files had changed after some hours of work. This utility will determine that for me, and will copy them to a temporary directory. I can then zip that directory, upload, and unpack at the other end.

Another use I have for this program is synchronising two PC's. I don't like utilities that do it automatically, because they copy all files and I always have some files that should not be copied. For example configuration files. So I use "copynew" to make a copy of all the files that have changed on the first PC, zip those files and transfer the zip to the second PC, and then by hand walk through the zip and copy the files need to be changed.

Usage


copynew [-c] filename

-c Do not make a copy of the changed files, only update the inventory.
-h Show this usage text.
filename Process this workfile. Default extension is ".wrk".

Installation


  1. Unpack the zip to a new folder somewhere on your disk.
  2. Open the properties of the "example.wrk" file, click the "open with" button, and select the Copynew program.
  3. Change the "example.wrk" file with Notepad.
  4. You can now double-click the "example.wrk" file, and/or other ".wrk" files that you make, and the copynew program will run. It will create a directory with the same name as the work file (in this case "example") and will store all the changed files in it. When run for the first time on a new work file it will copy all the files.

The Workfile


To use the program you will first have to create a workfile containing commands. The workfile is a simple text file, with one command per line. The order of the commands is not important. The possible commands are:

include path
Include all the files in the path. For example: "include c:\windows\" will include all files in the windows directory.
exclude mask
Exclude all the files that match the mask. Use '*' for anything, '?' for any character. For example: "exclude c:\windows\*.ini" will exclude all *.ini files in the windows directory.
#
Comment character. Lines that begin with this character will be ignored.

Example work file


# Include all files in the 'kessels' directory.
include d:\www.kessels.com\

# Ignore editor files and the old directory.
exclude *\EDIT.SET
exclude d:\www.kessels.com\old\*