window 计划任务 备份数据库至备份服务器
echo 当前盘符和路径的短文件名格式:%~sdp0
echo 当前批处理全路径:%~f0
echo 当前CMD默认目录:%cd%
## 设置变量 年、月、日
set year=%date:~0,4%
set month=%date:~5,2%
set day=%date:~8,2%
## 当前目录
set currentdir=%~dp0
## 日期格式
set dayformat=%year%-
原创
2016-07-29 17:53:36 ·
423 阅读 ·
0 评论