Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用 dos 批处理文件将带有 Rar.exe 的目录压缩为(今天的日期).rar?还是我需要使用其他文件压缩程序?
泰
编辑:我试过使用 %date:~10,4%%date:~7,2%%date:~4,2% 作为文件名,但它有时只有效。
试试这个命令:rar.exe a -ag+YYYYMMDD arc {FolderName}
Here is the command:
c:\path\to\rar\program\rar a C:\path\to\archive\backup.rar *.*