GLBasic forum

Codesnippets => Macros => Topic started by: Hemlos on 2009-Oct-16

Title: Create Backup in /project/backup directory.
Post by: Hemlos on 2009-Oct-16
Not trying to compete here, i didnt see the other backup macro until i came here to post mine.
Remove the "pause" line if you just want it to copy and close the window automatically.

Code: (glbasic) [Select]
:: Create \Backup directory and copy project root files to it.
@Echo off
TITLE BACKUP PROJECT FILES.
color 1E
prompt $s
md Backup
copy "%GLB_PROJ_PATH%\*.*" "%GLB_PROJ_PATH%\Backup\"
cd Backup
cls
echo *==========================================================*
echo *                                                          *
echo *            Contents of Backup Directory:                 *
echo *                                                          *
echo *==========================================================*
dir/c/on
echo .
pause