Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!swrinde!ucsd!pacbell.com!att!linac!midway!valley From: valley@uchicago (Doug Dougherty) Newsgroups: comp.os.msdos.programmer Subject: Re: Load config.sys driver as TSR ??? Message-ID: Date: 19 Nov 90 19:45:38 GMT References: <1105@ocsmd.ocs.com> Sender: news@midway.uchicago.edu (News Administrator) Organization: University of Chicago Lines: 37 motti@ocsmd.ocs.com (Motti Bazar) writes: >Hi there, >I wonder if anybody as come across a utility or even real code to >load config.sys driver as a TSR ??? >It will allow me to load config.sys type drivers any time I need >them (and maybe even to unload) instead of editing config.sys and >rebooting. >Any ideas ??? If I'll get enough info, I'll do it by myself and >post it. >Regards ... Motti This is a very interesting idea. I'm actually not sure how well it will work out in practice, but I encourage the idea. My question is a related one. I am currently developing an "ASK" device driver. You put it in your CONFIG.SYS like this: device=ASK.SYS VDISK.SYS 384 /X and it asks you whether or not you want to load VDISK. Unfortunately, it is not working, and I think the reason is that you cannot (so say all the manuals) do DOS function calls from within the INIT code of a device driver. (Currently, what the code does is crash the system shortly after trying to open the named device driver file) However, I know this can work. There are commercial products that have this calling syntax. I have disassembled one of them, XLOAD.SYS, by Helix Software (great bunch of guys, they are!) and it does, in fact, contain the DOS function calls to open (3D), read (3F), and close (3E) a file handle. How they get away with it is a mystery to me... Any help would be appreciated.