我试图压缩本地磁盘上的一个文件夹,例如: 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
开关。
你确定目录不是空的吗? 它会在空目录上给出这个消息。 将来的文件将被压缩。