pulsar/script/copy-folder.cmd

19 lines
223 B
Batchfile
Raw Normal View History

@echo off
2014-01-24 17:55:49 +04:00
set USAGE=Usage: %0 source destination
if [%1] == [] (
echo %USAGE%
exit 1
)
if [%2] == [] (
echo %USAGE%
exit 2
)
:: rm -rf %2
if exist %2 rmdir %2 /s /q
:: cp -rf %1 %2
xcopy %1 %2 /e /h /c /i /y /r