-
Notifications
You must be signed in to change notification settings - Fork 669
Use Mirror example
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 in %DokanLibrary2%\sample\mirror
.
You can also build it from the source with Visual Studio.
/r RootDirectory (ex. /r c:\test) Directory source to mirror.
/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.
/s (use stderr for output) Enable debug output to stderr.
/n (use network drive) Show device as network device.
/m (use removable drive) Show device as removable media.
/w (write-protect drive) Read only filesystem.
/o (use mount manager) Register device to Windows mount manager.
This enables advanced Windows features like recycle bin and more...
/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.
/a Allocation unit size (ex. /a 512) Allocation Unit Size of the volume. This will behave on the disk file size.
/k Sector size (ex. /k 512) Sector Size of the volume. This will behave on the disk file size.
/i (Timeout in Milliseconds ex. /i 30000) Timeout until a running operation is aborted and the device is unmounted.
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.
Dokan
Project Home | Wiki | Releases | Issues