mirror of
https://github.com/FWGS/hlsdk-xash3d
synced 2024-11-29 05:21:01 +01:00
32 lines
914 B
Batchfile
32 lines
914 B
Batchfile
@echo off
|
|
color 4F
|
|
echo XashXT Group 2006 (C)
|
|
echo Prepare source for backup
|
|
echo.
|
|
|
|
if exist backup.log del /f /q backup.log
|
|
if not exist D:\!backup/ mkdir D:\!backup\
|
|
echo Prepare OK!
|
|
echo Please wait: backup in progress
|
|
C:\Progra~1\WinRar\rar a -agMMMYYYY-DD D:\!backup\.rar -dh -m5 @backup.lst >>backup.log
|
|
if errorlevel 1 goto error
|
|
if errorlevel 0 goto ok
|
|
:ok
|
|
cls
|
|
echo Source was sucessfully backuped
|
|
echo and stored in folder "backup"
|
|
echo Press any key for exit. :-)
|
|
if exist backup.log del /f /q backup.log
|
|
exit
|
|
:error
|
|
echo ******************************
|
|
echo ***********Error!*************
|
|
echo ******************************
|
|
echo **See backup.log for details**
|
|
echo ******************************
|
|
echo ******************************
|
|
echo.
|
|
echo press any key for exit :-(
|
|
pause>nul
|
|
exit
|