File Search Parameters
/FILESEARCH - This tells the program that it will be using the File Search part of the application in Batch Mode. It CANNOT be run at the same time as a sizing in Batch Mode - using the /B parameter.
/FSCOPY= - Copies the file(s) to the directory specified after the '='. Two optional parameters after the '=' are KeepDirectoryStructure and Overwrite. Both are seperated by commas and are either True or False.
/FSMOVE= - Moves the file(s) to the directory specified after the '='. One optional parameter may follow directory name - KeepDirectoryStructure and has a True or False value.
/FSNTFSCOMPRESS - This parameter forces all files in the list to be compressed - if they are on a NTFS partition
/FSSENDTOZIP= - This parameter forces all files in the list to be sent to the zip file that follows the '='. One optional parameter may follow the Zip file name - DeleteAfter which is either True or False. By default this parameter is False. If it is true then the program will delete the original files after sending them to the Zip file.
/FSCHGATTR= - This parameter forces the file(s) in the list to change their attributes. It takes 4 parameters after the '='.
R - Read
H - Hidden
S - System
A - Archive
If there is a '+' sign in front - then the program will Set that attribute
If there is a '-' sign in front - then the program will Clear that attribute
If there is neither a '+' or a '-' then the program will not affect that setting
/FSDELETE - This parameter forces the deletion of all files in the list
/FSTAKEOWNERSHIP - This parameter takes ownership of each file in the list. It will change the ownership of each file to the current user
/FSCUSTOMACTION1= - This parameter runs the custom action, following the '=', on each file in the list. NOTE: the filename is specified using a '&f'.
/FSEXPORT=
- This parameter exports the full list of files to the file name specified after the equal sign
/FSREPORT
- This parameter prints the full list of files to the default printer
Examples:
1. Simple Copy Example
Disk Triage.exe /FILESEARCH /I=Standard.inp /FSCOPY=c:\test,True,False
This example runs the program, loads the Standard.inp input specification file, and then Copies all the files in the result set to the c:\Test directory - keeping the directory structure in the resulting directory - but not overwriting any existing files in the target directory.
2. NTFS Compressing Files
Disk Triage.exe /FILESEARCH /FSNTFSCOMPRESS
This example runs the program - load the default input specification file, and then compresses each file in place using the NTFS Native operating system compression.