Mail Archives: djgpp/1996/10/26/11:09:18
From: | dl AT tiac DOT com (toiletduk)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: Making life a little easier under Win95 and DOS
|
Date: | Fri, 25 Oct 1996 20:00:50 GMT
|
Organization: | The Internet Access Company, Inc.
|
Lines: | 31
|
Message-ID: | <54r69r$3oc@news-central.tiac.net>
|
References: | <01bbc29b$3db656e0$88015838 AT peterstb DOT usps DOT gov>
|
NNTP-Posting-Host: | felawldl.tiac.net
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
"B. Peterson" <bpeterson AT ntip DOT usps DOT gov> wrote:
>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...
I use Win95 and djgpp at the same time with batch files also. I
sometimes use notepad to make a new txt file, then write my program
with that. Then I drag it onto a batch file I created that renames my
file to the extention cpp, c, or h, depending on which one I just
made.
for makec.bat:
@echo off
ren %1 *.c
and makecpp.bat or makeh.bat would be similar. I also wrote a c
program (with djgpp of course!) that I just drag my c or cpp file onto
and it makes a batch file for me. Like this:
gcc -o PathAndFile.exe PathAndFile.*
Where PathAndFile is the path and file name of the dropped file.
This makes it easier than running command.com in a window and typing
it all out again and again (am much too lazy!) This could all be
avoided using something like RHIDE, but I find Win95 quicker for
opening files and useful for clipboard stuff.
- Raw text -