Skip to content

Use MemFS example

Liryna edited this page Dec 30, 2021 · 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 in %DokanLibrary2%\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 Single thread                               Only use a single thread to process events.
                                                 This is highly not recommended as can easily create a bottleneck.
  /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

memfs.exe /m /l m

Mount as network drive

memfs.exe /n /l m

Enable debug output stderr

memfs.exe /d /l m

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