hst125fan / mtpmount

Mounts Media Transfer Protocol (MTP) devices as (removable) drives on Windows for access via command line.
Other
45 stars 14 forks source link

mtpmount

Mounts Media Transfer Protocol (MTP) devices as (removable) drives on Windows for access via command line.

AppVeyor License

Project is built using Visual Studio 2017. An Installation of Dokan is required for this program to run (https://dokan-dev.github.io/).

Usage only from command line. Once mtpmount executable is in a %PATH% directory, these commands should do it:

In addition to that, you can also mount a storage by its name:

Get binaries

find them here: https://github.com/hst125fan/mtpmount/releases/latest (there is one version for 32-bit systems and one for 64-bit systems. The 32-bit executable should also work on 64-bit systems, however.)

You need to install Dokan (https://github.com/dokan-dev/dokany/releases/latest) before you use mtpmount.

Build it yourself

  1. Install Dokan (see above). You will need the "full" package (including development content), the MSI installers have these components opted out by default.
  2. Install Visual Studio 2017 (if you don't have that already). Community works fine.
  3. Check out repository.
  4. Open mtp-2-drive.sln in Visual Studio.
  5. Build target "mtpmount" in desired configuration (Debug/Release/x86/x64)

Testing

mtp-2-drive.sln also contains a "tests" target, which contains some integration tests for the most important features/use cases. The tests will automatically run on build. If you need to debug them, you can do so by starting tests_dbg with attached debugger (F5).