TIP: Click on subject to list as thread! ANSI
echo: 80xxx
to: BARRY BLOCK
from: JOHN GARDENIERS
date: 1997-02-09 21:15:00
subject: enable/disable drive

            Hi Barry,
 -=> 02 Feb 97 22:47, Barry Block wrote to John Gardeniers <=-
 JG>> It would be a simple matter to create a single program which
 JG>> would either disable or enable a drive, based on a command line
 JG>> parameter,... The resulting program would most likely be larger
 JG>> than the two little ones together.
 BB>      I wanted to find out :)  No extra commandline details, 189 bytes.
 BB>      But is not exactly the same because it toggles the condition.
 BB>      To specify or toggle, I needed 239 bytes.
Absolutely nothing wrong with what you've done. :-) The catch for my purposes
is that I could easily call the routine repeatedly from various batch files 
and
don't want a toggle function. I require a predictable state after each call, 
so
I would really need to pass a switch on the command line. The extra effort 
just
wasn't worth it from my point of view. I've got enough other unfinished stuff
to keep me busy. :-( It was far easier to just make two separate programs.
... A little later ...
I've just had a look at your second routine. Well done, all three functions 
in 
one 239 byte com file. I still don't think it was worth the effort though. 
:-) 
Nevertheless, I copied it to my source file directory and the newly generated
com file is already installed on the XT. Thanks for that.
 BB>      Now, what do I use it for? :) Password protect/hide a drive?
I can't think of a great many uses for it myself. Although it could be used 
for
some sort of protection I must point out that it would be pretty minimal
protection at best. I had a need to prevent an inexperienced user from
accessing a drive which didn't physically exist on a single floppy system. 
The 
objective was simply to prevent the normal DOS "insert disk for drive B:"
message. When I used the same computer there were times I wished to make use 
of
the extra logical drive, such as copying a disk, which I can't do with a
computer with two different drives.
        ttyl,
            >>> Fuse >>>
... Have you ever wished you could download a pizza?
--- GoldED 2.50+
---------------
* Origin: The Cubby House, assembled by hand (3:632/360.70)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.