• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 443
  • Last Modified:

Command Line Compression and Decompression

How do I do command line compression and decompression on Server 2003?
0
Robert_Waris
Asked:
Robert_Waris
  • 2
  • 2
1 Solution
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
Use Compact -
Displays or alters the compression of files on NTFS partitions.

COMPACT [/C | /U] [/S[:dir]] [/A] [/I] [/F] [/Q] [filename [...]]

  /C        Compresses the specified files.  Directories will be marked
            so that files added afterward will be compressed.
  /U        Uncompresses the specified files.  Directories will be marked
            so that files added afterward will not be compressed.
  /S        Performs the specified operation on files in the given
            directory and all subdirectories.  Default "dir" is the
            current directory.
  /A        Displays files with the hidden or system attributes.  These
            files are omitted by default.
  /I        Continues performing the specified operation even after errors
            have occurred.  By default, COMPACT stops when an error is
            encountered.
  /F        Forces the compress operation on all specified files, even
            those which are already compressed.  Already-compressed files
            are skipped by default.
  /Q        Reports only the most essential information.
  filename  Specifies a pattern, file, or directory.

  Used without parameters, COMPACT displays the compression state of
  the current directory and any files it contains. You may use multiple
  filenames and wildcards.  You must put spaces between multiple
  parameters.
0
 
Robert_WarisAuthor Commented:
This works well on local files but not for files copied across the WAN.

I have a 150mb file tat needs copied across the WAN.  I need to compress the file as much as possible to reduce the copy time Across the WAN.  Then the file can be automatically uncompressed and put in the correct location, on the other end.
0
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
Adding a context helps us to know what you want to do.

Then you need to use a zipping program - I use Info-Zip and related tools.  http://www.info-zip.org - they offer GUI and command line tools.
0
 
Robert_WarisAuthor Commented:
Good point , if I'd not been in such a hurry you've have got the answer on the first shot.  Sorry, but I've a one man show for the month of February.  Thanks!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now