Xref: utzoo comp.sys.ibm.pc:15667 comp.sys.tandy:764 Path: utzoo!attcan!uunet!husc6!purdue!gatech!hubcap!oolidjr From: oolidjr@hubcap.UUCP (Joe Moll) Newsgroups: comp.sys.ibm.pc,comp.sys.tandy Subject: Re: Re: command.com in RAM drive... Message-ID: <1653@hubcap.UUCP> Date: 18 May 88 02:17:24 GMT Distribution: na Organization: Clemson University, Clemson, SC Lines: 74 Sorry to send so much, but I needed to straighten this one out. >>From article <26530@clyde.ATT.COM>, by meb@floyd.ATT.COM: >> What I have: Tandy 1000EX >> 1-720K Floppy >> 1-360K Floppy >> DOS 2.11 >> >> What I want to do: I would like to copy command.com into a ramdrive and >> have DOS look for it there instead of in drive A. >> I have looked through my DOS manual and several DOS >> books but I can't seem to find anything that covers >> this topic. Eric Wickberg writes in responce ... >From: eric@umb.umb.edu (Eric Wickberg) >Newsgroups: comp.sys.ibm.pc >Looks like you are gonna have some problems in doing that. The main >problem is that when dos loads in (when you boot the A drive), it loads an >image into memory, and, unfortunately, molds itself around the boot drive. If >you have noticed, the machine will access the A drive when exiting from some >programs, and if it doesn't find the command.com in the drive it booted from, >it tends to get very upset. Now, in copying the command.com to the ramdrive >AFTER dos boots, DOS is still gonna look for command.com in the A drive. Now, >you can't boot to the ramdrive, because DOS creates it. So, as I see it, you >have a pretty interesting catch-22. >Lemme know if you find a solution to the problem.. >Good luck, >Eric Wickberg Well, I'm glad to say that you can copy COMMAND.COM into a RAM drive and use it from there after boot. I have done this on my Tandy 1000sx up until I recently bought my Hard-Card. The trick is DOS's environment. If you just type 'set' from a dos prompt, it will report to you the current environment settings. Setting the environment variable 'COMSPEC' (yes, in CAPS) to the path where your new copy of COMMAND.COM is now (i.e. C:\COMMAND.COM if your RAM drive is drive C, which was my case) will cause DOS to make all accesses to COMMAND.COM on the RAM drive, just as if you had booted from there. Example: In your autoexec ... --- copy command.com c: set COMSPEC=C:\COMMAND.COM <-- _Must_ be in caps. DOS's Initial setting is in caps. Will not overwrite if new one is in lowercase. --- That is essentially what I had. Worked great. RAM drives are soooo fast!! Sorry Eric .... -- /=----------+^ jlmoll@clemson.bitnet Joe Moll --------=\ Internet | oolidjr@hubcap.clemson.edu Clemson University \ UUCP | {pick a hub}!hubcap!oolidjr Clemson, SC \ |\=--------+--------/`