Shsurdrv


  SHSURDRV [/F[?][image][,drive]]... [/R[mem]] [/T] [/C] [/V] [/U] [/Q[Q]]
           [/D[size][Ssectors][Ccluster][Dentries][Ffats][$[label],][drive]]
Simulates a floppy or hard disk using an image file in memory and/or creates a RAM drive.

Options

  /F[?][image][,drive]
  Load an image specified by image into memory.  drive specifies
  a drive letter to be assigned to the new drive, and ? allows
  image to be ignored if it is invalid.

  /R[mem]
  Reserve mem kilobytes of XMS (default: 4).

  /T
  Allocate at the top of XMS.

  /C
  Use conventional memory instead of loading high.

  /V>
  Display memory usage at install.

  /U
  Unload the ramdisk.

  /Q[Q]
  Disable display of the sign-on banner.  /QQ disables dispalying of
  all messages.

  /D[size][Ssectors][Ccluster][Dentries][Ffats][$[label],][drive]
  Create a new ramdisk in memory with the specified parameters.
    size
    Create a new drive with the size of size bytes; use K suffix for
    kilobytes or M suffix for megabytes.
    Ssectors
    Use the exact number of sectors specified in sectors (default: 4101).
    Ccluster
    Use cluster to specify the cluster size, in kilobytes (default: 4096).
    Dentries
    Use entries to specify the number of root dir entries (default: 64).
    Ffats
    Specify the number of FATS to use with fats (default: 1, max: 2).
    $label
    Specify the desired volume label in label (default: SHSURDRV).
    drive
    Specify the desired drive letter (default: first available).

Notes

* A colon (':') can be used to separate an option from its value.
* Using /F and /D is optional; if the first character is a digit /D will be
  assumed, otherwise /F.
* Options to /D may be separated by commas and appear in any order, but size,
  if present, must be first.  
* Size can be a predefined value - use "/?S" to see what is available.
* Cluster must be a power of 2 (ie. 0, 1, 2, 4, 8, 16, 32 or 64); any other
  value will be rounded up to the next, but no higher than 64.
* Size will be rounded up to a multiple of 16.
* Using more than 14MiB of XMS requires /R or /T to start Windows, which also
  doesn't like individual drives greater than 64MiB.
* No drive ltter will be assigned greater than the first.
* Only the drive (on the first partition of a hard disk) is simulated, not
  the disk itself.

Errorlevel will be:
* the first drive assigned (A = 1) on install
* 0 on uninstall or help displayed
* 255 if not able to (un)install

Copyright © 1998 Jim Hall
This file is derived from the FreeDOS Spec Command HOWTO. See the file H2Cpying.txt for copying conditions.