cleanup and update

Discussion on running your own board and editing MajorMUD.
Post Reply
Bloodrock
Posts: 301
Joined: Mon Jul 16, 2012 9:02 pm

cleanup and update

Post by Bloodrock »

i recently added a dat update to my nightly cleanup thought i'd share works great
i do my edits on a seperate machine
when i add or make changes i compile do recovery then copy update file to a folder
then let the wgsclean.bat do the rest as you can see i used the if and if not

del /q c:\wg.zip
del /q "\\Isor\Users\Tony\Box Sync\wg.zip"
del /q \\isor\Users\\Tony\\Dropbox\\Public\wg.zip
c:\wg\pkzip -a -P -rp c:\wg.zip c:\wg\*.*
copy c:\wg.zip \\isor\minibook
copy c:\wg.zip \\Ajp\tonybook
copy c:\wg.zip \\isor\Users\\Tony\\Dropbox\\Public
copy c:\wg.zip "\\isor\\Users\Tony\Box Sync"
del /q \\Ajp\tonybook\WGBACKUP\3DAY\*.*
move \\Ajp\tonybook\WGBACKUP\2DAY\*.zip "\\Ajp\tonybook\WGBACKUP\3DAY"
move \\Ajp\tonybook\WGBACKUP\1DAY\*.zip "\\Ajp\tonybook\WGBACKUP\2DAY"
move \\Ajp\tonybook\wg.zip "\\Ajp\tonybook\WGBACKUP\1DAY"
if not exist \\ajp\tonybook\up\WCCUPDA2.DAT goto end
if exist \\ajp\tonybook\up\WCCUPDA2.DAT goto copy
:copy
move c:\wg\WCCUPDA2.DAT c:\wg\dats
move "\\ajp\tonybook\up\WCCUPDA2.DAT" "c:\wg"
copy "\\ajp\tonybook\up\WCCRECOV.FLG" "c:\wg"
:END


Post Reply