Skip to content

Use Mirror example

dimov-cz edited this page Feb 15, 2016 · 7 revisions

Mirror

Mirror is a simple command-line software that consumes the Dokan C API. It simply mirrors an existing folder in a dokan virtual drive by forwarding every IO call received by the virtual driver to the filesystem driver serving the existing folder.

Mirror.exe is embedded with dokan install Dokan\DokanLibrary\sample\mirror. You can also build it from the source with Visual Studio.

Usage

/r RootDirectory (ex. /r c:\\test)
/l DriveLetter (ex. /l m)
/t ThreadCount (ex. /t 5)
/d (enable debug output)
/s (use stderr for output)
/n (use network drive)
/m (use removable drive)

Command line example

Mirror C:\Users as RootDirectory in to a drive of letter M:\.

mirror.exe /r C:\Users /l m

Mount as removable drive

mirror.exe /m /r C:\Users /l m

Mount as network drive

mirror.exe /n /r C:\Users /l m

Mount as read only drive

mirror.exe /w /r C:\Users /l m

Enable debug output stderr

mirror.exe /d /s /r C:\Users /l m

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