Create Backup in /project/backup directory.

Previous topic - Next topic

Hemlos

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
Bing ChatGpt is pretty smart :O