昨天清理磁碟時,看到 壓縮舊檔案 項目,容量又特大(好幾G),一時之間沒考慮就全勾選了。
結果清理磁碟執行超久,我就去看電視打發時間。

大概半小時後,看它終於執行完畢。
然後開心的打開檔案總管,
發現怎麼一堆檔案都是藍色的檔名,
看到他們的屬性都變成壓縮,頓時發覺大事不妙。

上網搜尋了一下關於XP藍色壓縮檔的資訊
原來在清理磁碟時顯示的 壓縮舊檔案 項目 並不是什麼垃圾檔案
而是把沒用到的檔案壓縮起來
這聽起來似乎不錯
但是一但壓縮要給他還原還真麻煩
而且每次清理磁碟時會耗費大量時間
且空間沒有差很多

但是我已經執行壓縮了怎麼辦?
當然就想辦法把已經壓縮的檔案都解開囉~

dos compact 指令
DOSCompactCommand.gif
所以要解壓縮檔案,只要下 compact /u /i /s 即可。



英文版說明:
Microsoft DOS compact command

About compact :
Compact is a MS-DOS command used to compress, uncompress, and view compressed files.

Availability :
The compact.exe command is an external command and is available in the below Microsoft operating systems.

Windows 2000
Windows XP
Windows Vista
Windows 7

Syntax :
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 that 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.


Examples:

compact :
Display all the files in the current directory and their compact status.

compact file.txt :
Display the compact status of the file file.txt

compact file.txt /C :
Compacts the file.txt file.



如何關閉電腦的"壓縮舊檔案",步驟如下:

1.滑鼠點選左下角的"開始"然後點選"執行"

2.輸入"regedit"後按"確定",會跳出登錄編輯程式視窗

3.尋找HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Compress old files

4.直接把Compress old files整個刪除,"壓縮舊檔案"功能便能取消!!
arrow
arrow
    全站熱搜

    伊 發表在 痞客邦 留言(0) 人氣()