Specifications

Automation (CLI) 27
8.5 Automation (CLI)
Miray RAM Drive Pro/Server only
The MRDCLI.EXE from the program directory, allows you to automatically start
Miray RAM Drive or to engage it in automated processes. Start it from the com-
mand line or from a script using the following syntax:
mrdcli <Size (MB | Sectors+"s")> [-f <FileSystem>] [-s <SectorSize>]
[-c <ClusterSize>] [-force]
Parameter Meaning
<Size (MB)> The size of the RAM drive in MB (for ex-
ample 512)
<Size (Sectors+"s")> Pro only: Size of the RAM drive in sectors
ending in 's' (for example, 256000s)
Pro only:
-f [ NTFS | FAT | ExFAT | RAW ]
Server only:
-f [ NTFS | ReFS ]
Optional: The file system the RAM drive
will be formatted with (RAW = unformat-
ted).
Pro only:
-s [ 512 | 1K | 2K | 4K ]
Optional: Sector size of the RAM drive.
Pro only:
-c [ 512 | 1K | 2K | 4K | … | 64K ]
Optional: Cluster size of the file system.
-force Optional: If there is an active RAM drive
when calling MRDCLI.EXE, this drive will be
automatically switched off. Any unsaved
data will be lost.
The following return values are provided by MRDCLI.EXE after execution:
Parameter Meaning
0 RAM drive created successfully.
1 Error when turning on the RAM drive.
2 MRD.EXE could not be started.
3 MRD.EXE was not found.
4 Syntax error in the call parameters.
Note: Settings that are saved automatically by the graphical version of
the Miray RAM Drive for the next program start, will not be changed by
the command line version.