home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Supreme Volume 6 #1
/
swsii.zip
/
swsii
/
198
/
DOS6ALL.ZIP
/
Q95633
< prev
next >
Wrap
Text File
|
1993-06-05
|
3KB
|
89 lines
ARTICLE-ID:Q95633
TITLE :Automating RAMDrive Compression with DoubleSpace
----------------------------------------------------------------------
The information in this article applies to:
- Microsoft MS-DOS operating system version 6.0
----------------------------------------------------------------------
Summary:
It is possible to compress a RAMDrive with DoubleSpace. However, since
the information on the RAMDrive is lost each time you restart your
computer, you have to recompress the RAMDrive each time you start your
system.
You can avoid this problem by storing the RAMDrive compressed volume
file (CVF) on your hard drive and placing two commands in your
AUTOEXEC.BAT file to copy and mount the CVF on the RAMDrive when you
start your computer.
More Information:
The compression of the RAMDrive can be automated using the following
procedure:
1. Create RAMDrive. For example, to create a 1 MB RAMDrive in extended
memory, place the following statement in your CONFIG.SYS file:
device=c:\dos\ramdrive.sys 1024 /e
2. Restart your computer to load the RAMDrive.
MS-DOS assigns the next available drive letter for the RAMDrive.
For example, if you only have one hard drive (C), the RAMDrive
is assigned the drive letter D. This procedure continues to use D:
in the examples.
3. Compress the RAMDrive using the following command:
dblspace /compress d: /reserve=.13
The /RESERVE=.13 switch isn't necessary but it gives you the most
compressed space. On a 1 MB compressed RAMDrive, you have 1.59 MB free
on the RAMDrive and .13 MB free on the host drive.
4. Change the CVF attributes so the file can be copied. For example:
attrib h:\dblspace.000 -s -h -r
This example assumes the host drive is H:. To determine your host
drive, type DBLSPACE /LIST at the MS-DOS command prompt. Write the
drive mapping information down, because you need it in step 5.
5. Copy the compressed volume file (CVF) to your hard drive.
To avoid having to recompress the RAMDrive each time you start your
computer, you must store the CVF on your hard drive. This requires
approximately 1 MB of space on your hard drive.
To copy the compressed volume file to your hard drive, type the
following at the MS-DOS command prompt:
copy h:\dblspace.000 c:\dos\ramcvf.000
Since this file cannot be compressed (it already is) you should
copy it to an uncompressed drive.
6. Add the following lines to your AUTOEXEC.BAT file so the CVF is
copied to your RAMDrive and mounted each time you start your computer.
REM Copies and Mounts CVF to RAMDrive
copy c:\dos\ramcvf.000 d:\dblspace.000
dblspace /mount=000 d: /newdrive=h:
Substitute the appropriate drive letters for C:, D:, and H:. Drive
C: should be the uncompressed drive where you store the RAMDrive
CVF, drive D: is the RAMDrive, and drive H: is the host.
7. Restart your computer. To determine if the procedure worked, type
DBLSPACE /LIST at the MS-DOS command prompt.
WARNING: Any information stored on a RAMDrive is lost when you restart
or turn off your computer. To prevent data loss, copy any file you
want to save from your RAMDrive to your hard drive before turning off
your computer.
Additional reference words: 6.0 6 compressed