File_Compress
Description
Section titled “Description”Compresses a folder. The function uses NTFS compression, so the folder must be on an NTFS volume.
Syntax
Section titled “Syntax”File_Compress(sDirectory) As Boolean
Parameters
Section titled “Parameters”sDirectory (String)
Section titled “sDirectory (String)”Folder to compress
Remarks
Section titled “Remarks”The function returns False if Windows can’t compress the folder, for example because access is denied or the volume isn’t NTFS. The reason is written to the job log.
Example
Section titled “Example”If bStatus Then bStatus = File_Compress("C:\TEMP")Related functions
Section titled “Related functions”File_UnCompress File functions Constants Package Property Variables