]> git.pond.sub.org Git - empserver/commitdiff
Initial Release.
authorRon Koenderink <rkoenderink@yahoo.ca>
Sun, 22 May 2005 00:52:43 +0000 (00:52 +0000)
committerRon Koenderink <rkoenderink@yahoo.ca>
Sun, 22 May 2005 00:52:43 +0000 (00:52 +0000)
scripts/backup.bat [new file with mode: 0644]
scripts/blitz-w32/blitz_script.bat [new file with mode: 0644]

diff --git a/scripts/backup.bat b/scripts/backup.bat
new file mode 100644 (file)
index 0000000..c8aa080
--- /dev/null
@@ -0,0 +1,16 @@
+REM Example Backup script to be run from pre_update_hook
+REM Written by Ron Koenderink, 2005
+REM This script is in the public domain.
+REM
+REM Use: edit configuration variables below to taste, then set
+REM   pre_update_hook = c:\home\wolfpack\emp4\scripts\backup.bat
+REM in econfig.
+REM
+REM Rules when running as pre_update_hook:
+REM Data directory is working directory.
+REM stdin, stdout, stderr are redirected to /dev/null
+REM Exit code other than zero cancels update!
+REM
+REM This script is as simple as possible, since failure cancels the
+REM update.
+xcopy /E /Y c:\home\wolfpack\emp4\data c:\home\wolfpack\emp4\backup\r
diff --git a/scripts/blitz-w32/blitz_script.bat b/scripts/blitz-w32/blitz_script.bat
new file mode 100644 (file)
index 0000000..2ef402b
--- /dev/null
@@ -0,0 +1,21 @@
+REM Example Blitz script which can be ran as a scheduled task.
+REM Written by Ron Koenderink, 2005
+REM This script is in the public domain.\r
+REM\r
+REM You will need to set the EMPIREHOST and EMPIREPORT if the \r
+REM emp_client is not compiled with the correct defaults.\r
+REM set EMPIREHOST=localhost\r
+REM set EMPIREPORT=6665\r
+REM\r
+REM The script can be simplified by setting the execute\r
+REM directory to the bin directory.\r
+REM The -e is not necessary unless you are not using the\r
+REM the default game directory.\r
+REM\r
+echo power new | c:\home\wolfpack\emp4\bin\emp_client -2 power.out POGO peter\r
+net stop "Empire Server"\r
+c:\home\wolfpack\emp4\bin\files -f -e c:\home\wolfpack\emp4\data\econfig\r
+c:\home\wolfpack\emp4\bin\fairland -e c:\home\wolfpack\emp4\data\econfig 10 30\r
+net start "Empire Server"\r
+c:\home\wolfpack\emp4\bin\emp_client POGO peter <newcap_script\r
+echo enable | c:\home\wolfpack\emp4\bin\emp_client POGO peter\r