Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » Finished MUD Scripts
GeneralStonewall
Magician


Joined: 02 Feb 2004
Posts: 364
Location: USA

PostPosted: 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"
Reply with quote
MrMaunus
Newbie


Joined: 27 Jun 2009
Posts: 5

PostPosted: Mon Dec 28, 2009 10:35 pm   
 
Many thanks for that!! Smile
Reply with quote
Andersan
Newbie


Joined: 14 Nov 2014
Posts: 1

PostPosted: 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
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » Finished MUD Scripts All times are GMT
Page 1 of 1

 
Jump to:  
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

© 2009 Zugg Software. Hosted by Wolfpaw.net