Tuesday, March 18, 2008

My server is running out of disk space. How do I compress a directory and its contents?

1. Using Explorer or My Computer select a drive
2. Right click on a directory and choose Properties
3. Select the "Compress" check box and click "Apply"
4. You will be asked if you want to compress subdirectories, click OK
5. Click OK to exit
You can also use the command-line utility "compact.exe". For example, if you want to compress the directory C:\weblogs and all of its contents, open a command prompt and type the following:
compact /C /S:C:\weblogs
To view all options of the compact.exe utility, type:
compact /help

No comments: