home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Best Objectech Shareware Selections
/
UNTITLED.iso
/
boss
/
util
/
menu
/
017
/
sdldebug.bat
< prev
next >
Wrap
DOS Batch File
|
1991-01-31
|
2KB
|
49 lines
ECHO OFF
IF (%1)==(END) GOTO NOCHANGE
IF EXIST SDLSETUP.TXT GOTO TXTOK
ECHO Unable to locate the text file to use with DEBUG.
ECHO Please run SDLSETUP to create the necessary file.
:NOCHANGE
ECHO * * *
ECHO NO CHANGES HAVE BEEN MADE TO SDL.COM!
:pause
GOTO END
:TXTOK
sdl_get F SDLSETUP.TXT
IF %GET% == 0 GOTO NOCHANGE
ECHO W >>SDLSETUP.TXT
ECHO Q >>SDLSETUP.TXT
ECHO Input processing complete, now updating SDL.COM . . .
DEBUG SDL.COM <SDLSETUP.TXT >DEBUG.TST
IF EXIST DEBUG.TST GOTO OK
ECHO * * *
ECHO Using the DOS DEBUG command appears to have failed!
ECHO DEBUG may not be on a valid disk drive on your system, or
ECHO you may not have a path to DEBUG. Please check the
ECHO directories on your path for the existence of DEBUG.COM.
ECHO If you can establish a path to DEBUG or copy DEBUG.COM
ECHO to this working area, you can install the changes you
ECHO have just made by entering SDLDEBUG.
GOTO END
:OK
ERASE DEBUG.TST
ECHO * * *
ECHO SDL.COM has been modified.
ECHO Don't forget to COPY your new version of SDL.COM
ECHO to the disk and/or directory with your other DOS
ECHO commands and utilities.
:END
IF EXIST SDL*.TXT ERASE SDL*.TXT >NUL
SET GET=
SET $=
if not exist INSTALL.BAT goto ISMOD
ECHO * * *
Echo Would you like to run INSTALL to copy your modified version of
Echo SDL.COM to the directory of your choice?
SDL_GET N "Enter Y to run INSTALL, N to exit to DOS? "
if errorlevel 89 if not errorlevel 90 INSTALL
:ISMOD
if not exist INSTALL.BAT pause
if exist menu.bat menu
ECHO Exiting to DOS ...