mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-10 10:17:11 +03:00
19 lines
245 B
Batchfile
19 lines
245 B
Batchfile
@echo off
|
|
|
|
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
|
|
(robocopy %1 %2 /e) ^& IF %ERRORLEVEL% LEQ 1 exit 0
|