delorie.com/archives/browse.cgi   search  
Mail Archives: opendos/1997/02/04/05:05:46

From: dg AT dcs DOT st-and DOT ac DOT uk
Message-Id: <4780.9702040951@dufftown.dcs.st-andrews.ac.uk>
To: opendos AT mail DOT tacoma DOT net
Subject: Re: [opendos] speeding up command.com
In-Reply-To: cwg01@gnofn.org's message of Mon, 03 Feb 97 17:34:15 -0600.
<Pine DOT GSO DOT 3 DOT 95 DOT 970203172927 DOT 24246F-100000 AT sparkie DOT gnofn DOT org>
Mime-Version: 1.0
Date: Tue, 04 Feb 97 09:51:36 +0000
Sender: owner-opendos AT mail DOT tacoma DOT net

>> demon-batch-coder-from-hell and do all your work in COMMAND.COM. 
>
>Hmmm, ya almos de'scribe me!  I have 44 batch files on my machine
>totaling 77,585 bytes, guess how many of them is _under_ 4k?

Yeah. Batch files are cool. With a few little utilities, like awk, you can do 
great things with them.

	echo %f% | awk -F\ "{print \"set l=\" $NF}" > %temp%temp.bat
	call %temp%temp.bat
	del %temp%temp.bat

...is a useful code scrap I use for extracting the leafname of a directory 
path. awk is wonderful (even in DOS).


[Note: please do *not* cc: replies to me if you're also sending to the list! I 
get enough mail as it is without getting things twice]
-- 
------------------- http://www-hons-cs.cs.st-and.ac.uk/~dg --------------------
   If you're up against someone more intelligent than you are, do something
    totally insane and let him think himself to death.  --- Pyanfar Chanur
---------------- Sun-Earther David Daton Given of Lochcarron ------------------


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019