SavillTechDownload areaServicesProductsLinksSearch



line File Copy Service Information Product Page
Current Version 2.0

The File Copy Service is exactly what the name implies. It is a very thin Windows NT/2000 service with a small footprint that is used to move files from an originator to a destination folder at regular intervals in the background as a service.

All interaction is to the Application Event Log and the initial values are set during installation and can be changed via the registry at any time.

All mandatory registry values are under the HKEY_LOCAL_MACHINE\SOFTWARE\SavillTech\cpyServ key and are used as follows:

Value Name Type Purpose
destPath REG_SZ The destination path, e.g. d:\temp\path2
sourcePath REG_SZ The source path, e.g. d:\temp\path1
filter REG_SZ The filter used to select which files to move, e.g. *.*, *.dmp, *.txt etc
executionPause REG_DWORD The time in milliseconds between check phases, e.g. 5000 would check every 5 seconds

Version 2 adds the ability for upto 100 pairs of source, destination and filter paths which require manual adding to the registry with the format:

Value Name Type Purpose
destPath2 REG_SZ The second destination path, e.g. d:\temp\path3
sourcePath2 REG_SZ The second source path, e.g. d:\temp\path2
filter2 REG_SZ The second filter used to select which files to move

You cannot set different pause schedules for the different sets.

These continue up to 100, e.g.

Value Name Type Purpose
destPath100 REG_SZ The hundredth destination path, e.g. d:\temp\path101
sourcePath100 REG_SZ The hundredth source path, e.g. d:\temp\path100
filter100 REG_SZ The hundredth filter used to select which files to move

Its important to note the first path does not have 1 and is just Path, this is done to maintain backwards compatibility with existing installations. For example your registry with 3 sets of paths may be:

sourcePath - d:\temp\dir1
destPath - d:\temp\dir2
filterPath - *.*
sourcePath2 - d:\temp\dir2
destPath2 - d:\temp\dir3
filterPath2 - *.t*
sourcePath3 - d:\temp\dir3
destPath3 - d:\temp\dir4
filterPath3 - *.txt
executionPause - 5000

An example of this can be found in the cpyservmulti.reg which is installed to the '%ProgramFiles%\SavillTech Ltd\File Copy Service 2.0' folder. Your registry would look like:

When the service starts via the Services control panel applet (Start - Settings - Control Panel - Services) or using the Computer Management MMC if using Windows 2000 (Start - Programs - Administrative Tools - Computer Management) an event log is written with the values to be used:

Event Type: Information
Event Source: cpyserv
Event Category: None
Event ID: 101
Date: 05/12/2000
Time: 15:41:29
User: N/A
Computer: MINNIE
Description:
File Copy Information message - Using values
Filter - *.msg
Destination - d:\temp\dir2
Source - d:\temp\dir1
Pause - 5000
Byte level move mode 

Every execution phase an event will be written confirming if any files were moved.

To start the service from the command line:

C:\> net start cpyserv

To stop:

C:\> net stop cpyserv

To download click here.

On installation a file cpyserv.exe will be placed in the system32 folder and will be installed automatically. If there is a problem you can manually install the service as follows:

  1. Ensure the extracted cpyserv.exe is in the %systemroot%\system32 folder (not the downloaded cpyserv.exe, the extracted file is around 28KB)
  2. Start a command prompt (cmd.exe)
  3. Type the command
    C:\WINNT\system32>cpyserv -i
    File Copy Service installed.
  4. The service should now be displayed in the services applet

To uninstall use the Add/Remove programs applet (Start - Settings - Control Panel - Add/Remove Programs) or if you just wish to remove the service use command:

C:\WINNT\system32>cpyServ -u
File Copy Service removed.

Contact Information

If you wish to discuss licensing windows information in a product and/or require an custom changes (logo etc.) please mail sales@savilltech.com.

Last Update: Sunday, 22 July 2001
Copyright ©2001 SavillTech Ltd. All rights reserved. Terms of use