|
GeneralStonewall Magician
Joined: 02 Feb 2004 Posts: 364 Location: USA
|
Posted: Thu Dec 03, 2009 9:04 pm
[BAT script] Automated backups (Never lose your settings again!) |
Here's a batch script I wrote that will make backups of all your package files and sort them, into a separate directory, by date and time. After it finishes backing up all your package files it will close itself and launch Zmud.
To save this, open up notepad, copy/paste this code, and save with a .bat extension. 'zdir' is the directory where you have zmud installed and 'zbak' is where it will save the backups.
Code: |
@echo off
:: variables
set backupcmd=xcopy /s /c /d /h /i /r /y
set hour=%time:~0,2%
if "%hour:~0,1%"==" " set hour=0%time:~1,1%
set folder=%date:~10,4%_%date:~4,2%_%date:~7,2%_%hour%_%time:~3,2%
set zbak=C:\ZBAK
set zdir=C:\Program Files\zMUD
:: backup
echo ### Backing up Zmud mud files...
%backupcmd% "%zdir%\*.mud" "%zbak%\%folder%\"
echo Backup Complete! Starting zmud!
start "" "%zdir%\Zmud.exe" |
|
|
|
|
MrMaunus Newbie
Joined: 27 Jun 2009 Posts: 5
|
Posted: Mon Dec 28, 2009 10:35 pm |
Many thanks for that!!
|
|
|
|
Andersan Newbie
Joined: 14 Nov 2014 Posts: 1
|
Posted: Fri Nov 14, 2014 11:44 am |
What I'd like to do is set this up so another player could come up to your character (the char with the script) and start playing without you even being there.
____________
Fai |
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|