FILEMOVE.EXE: File Mover

File Mover allows you to automatically move or copy files from a selected source directory to a specified destination directory. It actually consists of two utilities: FILEMOVE.EXE and FMUI.EXE.

Caution SMS uses files to schedule tasks and other events. Moving these files with File Mover may interfere with the proper operation of SMS.

FILEMOVE.EXE runs on the target system (the computer that you want to monitor) and periodically configures itself according to the values in the local system's registry. It monitors files in the specified source directory, either by polling the directory at set intervals or by using Windows NT Directory Change events. When the specified files are found, it moves or copies the files to the destination directory. FILEMOVE.EXE writes its status to its log file (FILEMOVE.LOG). When this log file reaches its maximum size, it is closed and renamed FILEMOVE.LO_. A new FILEMOVE.LOG file is then created.

FMUI.EXE is the utility that you use to get and set the registry values that configure FILEMOVE.EXE. (These registry values are located in HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\SMS_FILE_MOVER). FMUI.EXE can run on any computer that has local or network access to the registry of the computer that is running FILEMOVE.

The following values are set with the FMUI utility (these are the values in the FMUI utility itself, not in the registry):

Computer Name

The name of the target computer running FILEMOVE.

File Mask to Scan

The filter that FILEMOVE should use to select the files to be moved or copied. Defaults to all files (*.*) if no mask is specified.

Source Directory to Monitor

The directory from which to move or copy files. FILEMOVE will not work if this directory is not specified or if the specified directory does not exist.

Destination Directory

The directory to which to move or copy files. FILEMOVE will not work if this directory is not specified or if the specified directory does not exist.

Log File location

The full path to the FILEMOVE log file. Defaults to C:\.

File size in Kbytes

The size of the FILEMOVE log file, specified in kilobytes. Defaults to 128K.

Wait for Directory Change Event

Selecting the checkbox specifies that FILEMOVE should use Windows NT Directory Change notification to monitor files. Clearing the checkbox specifies that FILEMOVE should use polling.

Poll Source Directory every nn seconds

nn specifies the default polling interval for FILEMOVE. It is only valid if polling has been specified.

Delete files after copying

Selecting the checkbox specifies that FILEMOVE should move the files to the destination directory (and delete the source files). Clearing the checkbox specifies that FILEMOVE should simply copy the files (and leave the source files intact).

Overwrite duplicate filenames

Selecting the checkbox specifies that FILEMOVE should overwrite duplicate files in the destination directory. Clearing the checkbox specifies that FILEMOVE should change duplicate filenames so that no files are lost. If FILEMOVE changes any file names, the change is written to the FILEMOVE log file.

Runs On

x86

Files Required

FILEMOVE.EXE, FMUI.EXE, FMUI.HLP, FMUI.CNT, FMUI.FTS

FILEMOVE Syntax

FILEMOVE can be run as an executable or as a service. In both cases, it requires Administrator rights on the computer to be monitored. It will also need rights to the source directory, the destination directory, and the local registry. When run as a service, it will also need the right to "Log On As A Service".

To start FILEMOVE as an executable

FILEMOVE /E

Note You can type "Start FILEMOVE /E" to run FILEMOVE in a separate command window. This also allows you to end FILEMOVE by closing its command window.

To install FILEMOVE as a service (using SVCCTRL.EXE)

Create a domain user account that has the Log on as a Service right. Put the account in the Domain Admins group.

At a command prompt, change to the directory containing SVCCTRL.EXE, and type svcctrl.

At the prompt, type 1, for Install.

Type the name of the FILEMOVE service (SMS_FILE_MOVER):

Enter service name: SMS_FILE_MOVER

Type that name of the account you created in Step 1:

Enter account name [domain\user]: RAYDOMAIN\RAYMCC

Type the account's password, which is case-sensitive:

Enter password: ItsaSecret

Type the name of the computer to install the service on:

Enter machine name [add \\]: \\RAYMACHINE

Type the path of the service on the local machine. Include the executable file:

Enter path: C:\BIN\FILEMOVE.EXE

Specify whether the service is to be started automatically when the computer is restarted:

Autostart service during bootup? (Y/N): N

When SVCCTRL.EXE indicates that the service has been installed, type 0 to exit SVCCTRL.EXE.

After the service has been installed, the service can be controlled with SVCCTRL.EXE or with Service Manager.

FMUI Syntax

FMUI

Note The user running FMUI:EXE needs rights to monitor the registry on the computer running FILEMOVE.EXE.