Mail Archives: djgpp/1996/10/25/14:52:18
From: | "B. Peterson" <bpeterson AT ntip DOT usps DOT gov>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Making life a little easier under Win95 and DOS
|
Date: | 25 Oct 1996 14:38:12 GMT
|
Organization: | US Postal News Server
|
Lines: | 45
|
Message-ID: | <01bbc29b$3db656e0$88015838@peterstb.usps.gov>
|
NNTP-Posting-Host: | petersbd.usps.gov
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
I found myself using the same dos command over and over so I created a
batch file to make it a bit easier and I thought I'd post my idea....
Ok, I know that this isn't high tech or anything but hey it helps...
Just put this in a directory in you path like c:\dos or c:\windows and
type...
djgpp - takes you to the djgpp directory
djgpp allegry\examples - takes you to the c:\djgpp\allegry\examples
directory or any directory you specify
djgpp setup - runs the setup.bat file in the djgpp directory without taking
you there.
djgpp dpmi - loads cwsdpmi.exe in memory
djgpp nodpmi - remove cwsdpmi.exe from memory
You'll have to change the two 'set' statements at the beginning of the file
to point to your directory.
@echo off
set djdrv=c:
set djdir=\djgpp
if !%1==!setup goto setup
if !%1==!dpmi goto dpmi
if !%1==!nodpmi goto nodpmi
%djdrv%
cd %djdir%
if !%1==! goto theend
cd %1
goto theend
:setup
call %djdrv%%djdir%\setup
echo Djgpp Environment is setup.
goto theend
:dpmi
%djdrv%%djdir%\bin\cwsdpmi -p
echo DPMI enabled.
goto theend
:nodpmi
%djdrv%%djdir%\bin\cwsdpmi -u
echo DPMI disabled.
:theend
set djdrv=
set djdir=
- Raw text -