Mail Archives: opendos/1997/02/04/05:05:46
>> 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 -