Re: [mu TECH] How identify the startup hard-disk

From: Clive Wright (clive_wright@telinco.co.uk)
Date: Thu Jan 27 2000 - 00:28:39 CET


Michele Andreoli wrote:
>
>
> I need a dos command which use pipe and produce something like
> a boot prompt parameter unused=....
>
> dir | the_program >> loadlin.cfg
>
The attached filter.com file will do what you ask, at least
under dos 6.22. Please note that it is a "bare bones" aka
"rustic" programme so it may not behave correctly if used in
a different context.
 
I cannot check it using earlier version of dos as I have no
access to them.
This is why I have have posted to the group instead of
directly to michele so that if anyone is using an exotic
version of dos they can try the filter with it and let
michele know the result.

note:
"dir |filter" will report a different free disk space than
"dir" on its own due to a temporary file that is created for
the pipe process. An accurate test can be performed by
comparing the free space reported with that from "dir
|more".

I have included a hexdump of the programme for the benefit
of any mail readers that cannot handle binary downloads:

Dumping File: C:FILTER.COM

0000: 8c c8 8e d8 8e c0 ba 4d 01 bf 54 01 fc 31 c9 b4
".......M..T..1.."
0010: 08 cd 21 3c 20 75 f8 41 b4 08 cd 21 3c 20 74 f7
"..!< u.A...!< t."
0020: 83 f9 10 72 e8 88 05 47 b4 08 cd 21 3c 2c 74 f8
"...r...G...!<,t."
0030: 3c 30 72 06 3c 3a 73 02 eb eb b0 0d 88 05 47 b8
"<0r.<:s.......G."
0040: 0a 24 89 05 b4 09 cd 21 b8 00 4c cd 21 75 6e 75
".$.....!..L.!unu"
0050: 73 65 64 3d
"sed="

Clive

---------------------------------------------------------------------
To unsubscribe, e-mail: mulinux-unsubscribe@sunsite.auc.dk
For additional commands, e-mail: mulinux-help@sunsite.auc.dk




This archive was generated by hypermail 2.1.6 : Sat Feb 08 2003 - 15:27:13 CET