Skip to content

Use MemFS example

Liryna edited this page May 30, 2020 · 4 revisions

Memory FS

MemFS is a simple command-line software that consumes the Dokan C API. It will create a temporary virtual filesystem that only exist in memory. All the IO on the device are virtually proceed and the result return to the Windows system.

MemFS is embedded with dokan install since Dokan 1.4.0 in Dokan\DokanLibrary-1.4.0\sample\memfs. You can also build it from the source with Visual Studio.

Usage

  /l MountPoint (ex. /l m)                       Mount point. Can be M:\ (drive letter) or empty NTFS folder C:\mount\dokan .
  /t ThreadCount (ex. /t 5)                      Number of threads to be used internally by Dokan library.
                                                 More threads will handle more event at the same time.
  /d (enable debug output)                       Enable debug output to an attached debugger.
  /n (use network drive)                         Show device as network device.
  /m (use removable drive)                       Show device as removable media.
  /c (mount for current session only)            Device only visible for current user session.
  /u (UNC provider name ex. \localhost\myfs)     UNC name used for network volume.
  /i (Timeout in Milliseconds ex. /i 30000)      Timeout until a running operation is aborted and the device is unmounted.

Command line example

Mount a virtual drive as drive of letter M:\.

memfs.exe /l m

Mount as removable drive

mirror.exe /m /l m

Mount as network drive

mirror.exe /n /l m

Enable debug output stderr

mirror.exe /d /l m

Note: To unmount the drive, just press CTRL + C in the console.