The Dink Network

Reply to Re: Recover map/work after windinkedit crash?

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
August 2nd 2010, 03:25 AM
dragon.gif
symian
Peasant He/Him United States
 
In Reply to MsDink:

The batch file helps a great deal. So did setting WDE to Win98 compatibility mode (I use XP to the newest updates). I keep the batch file in my Dmod's directory (folder). I run it when I want to use WDE for that specific dmod project. Basically all it does is run WDE, checks if it crashes, runs the backup if it does not, checks to make sure I actually updated something (not just went into WDE and exited), and if so deletes the oldest backup and renames the others accordingly.

Here is my workit.bat file. Hope it helps you!



---
@ECHO OFF
..\dinkedit\windinkedit.exe
IF NOT ERRORLEVEL 0 GOTO ERRORED
GOTO ESUCCESS

:ESUCCESS
C:\Progra~1\WinRAR\RAR.exe a -u -r -x*.rar dathp.rar
IF ERRORLEVEL 1 GOTO END
CD BACKUPS
IF EXIST dathp5.rar DEL dathp5.rar
IF EXIST dathp4.rar REN dathp4.rar dathp5.rar
IF EXIST dathp3.rar REN dathp3.rar dathp4.rar
IF EXIST dathp2.rar REN dathp2.rar dathp3.rar
REN dathpbk.rar dathp2.rar
copy ..\dathp.rar dathpbk.rar
CD ..
GOTO END

:ERRORED
ECHO THE PROGRAM REPORTED A NON ZERO EXIT!
ECHO DMOD WORK HAS NOT BEEN BACKED UP.
PAUSE
GOTO END

:END