Skip to content

File_Compress

Compresses a folder. The function uses NTFS compression, so the folder must be on an NTFS volume.

File_Compress(sDirectory) As Boolean

Folder to compress

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.

If bStatus Then bStatus = File_Compress("C:\TEMP")

Scripting Guidelines

File_UnCompress File functions Constants Package Property Variables