Author Topic: Create Backup in /project/backup directory.  (Read 2465 times)

Offline Hemlos

  • To boldy go where no pixel has gone before!
  • Global Moderator
  • Prof. Inline
  • *******
  • Posts: 1579
  • Particle Hawk
    • View Profile
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
« Last Edit: 2009-Oct-16 by Hemlos »
Volume_of_Earth(km^3) = 4/3*3.14*POW(6371.392896,3)