Previous Topic: dtscli Command—Add Parcel FiltersNext Topic: Predefined Filters


dtscli Command—Add File Filters

Valid DTSCLI file filters include the following types:

When adding file filters, parcel filters may also be needed. To transfer a directory, file filters must now be added to the dtscli command. If you try to transfer a directory without adding the directory filter, you will get the following error message:

"Failed to open input data <c:\dtstemp> error=<Permission denied>".

Help for file filters is given by the command:

dtscli -help agent f_filters

Example: Transfer a Directory

Note: If using the longhand format, you must also apply parcel filters.

Example: Encrypt a File

The following example encrypts the file before it sending it to the responder:

dtscli -agent "ipath=Gold::c:\dtstemp" 
"rpath=Silver::c:\dtstemp" 
"f_filters=PLAIN_ENCRYPT_FILE(ENDEC_KEY=key):PLAIN_DECRYPT_FILE()"
"p_filters=binary"

Example: Apply Attributes of Original File to Transferred File

The use of the file attribute filter forces the transferred file to have the same attributes as the original.