![](/img/trans.png)
[英]how to insert system date and time through Command Line interface of cassandra in windows
[英]Compressing files through command line on a Windows system
我正在嘗試壓縮本地磁盤上的一個文件夾,例如: C:\\Templates
我從命令行(cmd.exe)使用以下命令來執行此操作:
compact /c C:\Templates
但它不起作用,並顯示以下消息:
1 files within 1 directory were compressed.
0 total bytes of data are stored in 0 bytes.
The compression ratio is 1.0 to 1.
我的機器運行Windows 7,64位。
使用:
compact /c /s:C:\Templates
您唯一缺少的是目錄名稱前面的/s
開關。
順便說一句,如果簇大小大於4096字節,則使用compact.exe將無法工作 。 我格式化了一個8192字節簇大小的驅動器,后來發現NTFS壓縮不能用它。
你確定目錄不是空的嗎? 它將在空目錄上提供該消息。 放在那里的未來文件將被壓縮。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.