回复 5# 7016427 - @echo off
- set /p yn=y复制“特殊退票”/n复制“pos机账单”/a“都复制”
- if /i "%yn%"=="y" (
- echo f | xcopy /h /y "D:\统计\特殊退票.xls" "g:\bak\特殊退票【%date:~0,4%年%date:~5,2%月】.xls"
- ) else if /i "%yn%"=="n" (
- echo f | xcopy /h /y "d:\统计\pos机账单.*" "g:\客运月报\pos机账单【%date:~0,4%年%date:~5,2%月】.xls"
- ) else if /i "%yn%"=="a" (
- echo f | xcopy /h /y "D:\统计\特殊退票.xls" "g:\bak\特殊退票【%date:~0,4%年%date:~5,2%月】.xls"
- echo f | xcopy /h /y "d:\统计\pos机账单.*" "g:\客运月报\pos机账单【%date:~0,4%年%date:~5,2%月】.xls"
- )
- pause
复制代码
|