|You can choose compact or compress depending on what you need to do.|
From technet site.
If you just want to save space on the hard drive.
Compact is the command-line version of the compression functionality in Windows Explorer. The compact command displays and alters the compression of folders and files on NTFS volumes. It also displays the compression state of folders.
There are two reasons why you might want to use Compact instead of Windows Explorer:
You can use Compact in a batch script.
If the system fails during compression or decompression, the file or folder is marked as Compressed or Uncompressed. If the operation did not complete, Compact forces the operation to complete in the background.
Unlike Windows Explorer, Compact automatically compresses or decompresses any files that are not already in the compression state that you set for the folder.
For more information about Compact, see File System Tools later in this chapter."
IF you are allowed to install MS tools then..
You can use the compress command from 2003 ressource kit:
See -Z switch for MS-ZIP compression
COMPRESS [-R] [-D] [-S] [ -Z | -ZX ] Source Destination
COMPRESS -R [-D] [-S] [ -Z | -ZX ] Source [Destination]
Compresses one or more files.
-R Rename compressed files.
-D Update compressed files only if out of date.
-S Suppress copyright information.
-ZX LZX compression. This is default compression.
-Z MS-ZIP compression."
will be your answer.
Playing to the angels
Les Paul (1915-2009)