Compressing files conserves hard disk storage space by reducing the size of files. Some files, such as video and picture files, are already compressed by the algorithm used to create the files. However, files such as text and document files can be compressed by more than 25% in most cases.
- Skill level:
Other People Are Reading
Things you need
- Microsoft Windows 7 computer with the NTFS file system configured
Click "Start" and then select the "Search" box. Enter "cmd" in the "Search" box. Right-click on the command line icon that displays in the upper left pane and click "Run as Administrator."
Enter "cd c:\path\directory\", and substitute "\path\directory\" with the path and name of the directory that contains the files you need to compress. Tap the "Enter" key and the command line prompt will move to the directory of the files to be compressed.
Enter "compact.exe file /c /s /i", and substitute "file" with the exact name of a file to be compressed. If all files to be compressed are in the same directory, substitute "file" with ".". Tap the "Enter" key and the files will be compressed.
Tips and warnings
- You can also compress the directory that contains the files, which will compress the files as well, by substituting "file" in the command above with the directory path and name of the directory.
- 20 of the funniest online reviews ever
- 14 Biggest lies people tell in online dating sites
- Hilarious things Google thinks you're trying to search for