@setlocal
@set TMPDST=C:\OSGeo4W\apache\htdocs\fgx-globe\cookbook\load-plane-3d\test
@if NOT EXIST %TMPDST%\nul goto ERR1
@if "%~1x" == "x" goto HELP
@if NOT EXIST %1 goto ERR2
@if NOT EXIST %TMPDST%\%1 goto DOCOPY
@call dirmin %1
@call dirmin %TMPDST%\%1
@echo NOTE: File already exists in the destination
@echo *** CONTINUE? ***
@pause
:DOCOPY
copy %1 %TMPDST%\.
@goto END

:ERR1
@echo Can NOT locate %TMPDST%
@goto END

:ERR2
@echo Can NOT locate file [%1]
:HELP
@echo Give a valid file name to copy to [%TMPDST%]
:END
