@echo off
rem 複製指定目錄的目錄結構到目標目錄,並移動的文件到目標目錄,且保留目錄結構(空目錄也複製),不保留系統文件和隱藏文件
set ObjPath=.\Data
set DestPath=.\exportLog
set DestExt=*.*
xcopy /e /c /y /s ".\CardDriverLog\%DestExt%" "%DestPath%\CardDriverLog\"
xcopy /e /c /y /s "%ObjPath%\Log\%DestExt%" "%DestPath%\Log\"
xcopy /c /y /s "%ObjPath%\ScData\*.db" "%DestPath%\ScData\"
xcopy /e /c /y /s "%ObjPath%\ScData\PrintFile\%DestExt%" "%DestPath%\ScData\PrintFile\"
REM pause