添加windows计划任务:
@echo off echo 正在启动计划任务服务...
sc config Schedule START= AUTO >nul
sc start Schedule>nul
cls
SCHTASKS /Create /SC DAILY /TN his_update /TR D:\HYS-HIS\hys-orcl\his_main\his_main.exe /ST 23:23:23 /SD 2012/02/26 >nul&&echo 添加成功&pause
复制:
@echo off >nul
xcopy e:\a.zip /s f:\ /y ;
exit
压缩文件夹:
"C:\Program Files\WinRAR\WinRAR.exe" a -s -m5 -ep D:\ibilling\a.zip C:\hys_software\ibilling
存储目标 备份目标
复制特定文件:
copy d:\his_down\deptmanager\*.pbd c:\hys_software\inpdoctor
copy d:\his_down\deptmanager\*.exe c:\hys_software\inpdoctor