File Operation

The File Operation is used to manage Window Operating System file and folders in SLIK.  Using the File Operation facility you define what files should be moved, deleted, copied or concatenated to a destination file or folder. 

This File operation supports the copy, move, remove and concatenation of files. These functions can be performed using file pattern and/or date or file size criteria.

As each file is processed the destination path can be constructed using the following format specification:

\"%[width][.precision]type\"

Supported types are:

Type

Evaluates

V

File drive (C:)

D

File directory (dir)

F

File name (file1.ext)

N

File base name (file1)

E

File extension (.ext)

C

Computer name

U

User name

T

Date and time (2000_31_01-23-10-22)

A

Date (2000_31_01)

R

Unique revision number (only valid as last (ext) operator, ie %F.%R)

d

Day (1-31)

m

Month (1-12)

y

Year (1970-2038)

j

Julian day (1-365)

H

Hour (0-23)

M

Minute (0-59)

S

Second (0-59)

%

percent character

Note: you may also use a numeric precision and/or width specifier between the % and type character, e.g., "%03j" will format the Julian day with leading zeros for up to 3 characters.  A width specifier of "%.5F"\ will truncate the file name at the sixth character

File operations are created using the following form:

File Form Field Descriptions

File Operation ID

The File Operation ID field holds the system generated unique identifier.  The File Operation ID field automatically populates on creation of the File Operation record.  The File Operation record is created when you click on OK to save and close the new record.

Field value type: system generated

Operation Type*

The Operation Type * field indicates what action is going to be conducted on the files nominated in the Source File(s) field.  These are; copy, move, delete and concatenate.

Source File(s)*

The file(s) noted in the Source File(s)* field can include wildcards or a list of comma separated file paths.  This value can be changed using the standard Windows browsing facility.

Destination Path

The Destination Path field dictates where the file copied or moved will be placed. It is here that you can use the format specification variables to construct a valid destination path, (e.g., D:\Archive\%T\%F.%R). The [%] button lets you select from a list of copy specifications.

This field is not applicable on the delete operation.

File Size

Values in the File Size fields are used to qualify the source files to be included in the list of files to process.

File Time

Values in the File Time field are used to quality the source files to be included in the list of files to process.

Overwrite if exists

A check in this field indicates that all previous files of the same names as those being copied or moved should be overridden.

Recursive

A check in this field indicates that SLIK should process matching sub-folders.  If the recursive value “*.*” is used this will cause a search on folders and all associated sub-folders.

Make Directories

A check in this field indicates that any new directories will be created in order to comply with the directory path set down in the Destination Path field. 

Preserve Attributes

A check in this field indicates thatattributes associated with the files being manipulated are to be carried through to the result files, (e.g., Hidden, Archive, Read only etc).

Test Mode

A check in this field will, when the operation is run, display the files that qualify to the SLIK Monitor program. No files are actually processed.