[英]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.