自己写了一段文件COPY&COMPARE的批处理,主要是把文件从一个目录考到另一个目录,然后记录次数,出现问题或出现错误提示,现在想要做出一个窗口,可以由用户自己输入源地址和目标地址,请高手指教,谢谢!
@echo off
cls
md d:\1
:copyfile
count3 /+
del /q D:\1\*.txt
copy G:\*.* D:\1
fc G:\*.txt D:\1\*.txt
if errorlevel 1 goto end
goto copyfile
:end
@echo File compare failed.
@echo off
cls
md d:\1
:copyfile
count3 /+
del /q D:\1\*.txt
copy G:\*.* D:\1
fc G:\*.txt D:\1\*.txt
if errorlevel 1 goto end
goto copyfile
:end
@echo File compare failed.
