home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 September
/
Simtel20_Sept92.cdr
/
msdos
/
ramdisk
/
ramdisk2.arc
/
SETRAM.DOC
< prev
next >
Wrap
Internet Message Format
|
1986-12-02
|
2KB
From: jnw@mcnc
Received: by mcnc (4.12/4.7)
id AA29677; Sun, 27 Jan 85 21:44:49 est
Date: Sun, 27 Jan 85 21:44:49 est
Original-From: John White <jnw@mcnc>
Message-Id: <8501280244.AA29677@mcnc>
To: ecsvax!bet
Via: Mcnc; 27 Jan 85 23:00-EDT
Status: RO
This ramdisk starts out with no memory. To allocate memory for it use:
setram drive kbytes
where drive is the drive letter and kbytes is the number of kbytes to alloc.
Memory can only be allocated when there is currently no memory allocated
to the ramdisk.
example, if the ramdisk is drive e and a 68k ramdisk is desired
setram e 68
To deallocate the memory that was allocated for the ramdisk, use:
setram drive
where drive is the drive letter.
example, if the ramdisk is drive e
setram e
This ramdisk allows up to 32 directory entries in the root directory.
To use it, there must be a line in the config.sys file
device=ram.sys
and if an initial ramdisk is desired, the line
setram drive kbytes
can be put in the autoexec.bat file.
Don't allocate memory if there is currently in memory a program that will
terminate and free up its memory, as the setram memory will be allocated after
this program and memory will become segmented. Also, don't run a
terminate-and-stay-resident program when memory is allocated for the ramdisk
because when the ramdisk memory is deallocated memory will be segmented.
If memory is deallocated in a .bat file, then memory will be segmented until
the .bat file terminates, so don't do anything in that bat file after
a deallocation if this segmentation could cause a problem (such as
reallocating memory with setram or running a terminate and stay resident
program).