bat 惯用批处理命令

bat 常用批处理命令1. 重命名^: 转义字符%date:~startIndex, length%: 取出日期从startIndex(zero-based)

bat 常用批处理命令
1. 重命名


^: 转义字符
%date:~startIndex, length%: 取出日期从startIndex(zero-based)开始,长度为length的字符串

执行该批处理后,文件名称变成transaction_2012-05-24.txt