MTP tools in Windows

Download and extract precompiled binaries of MTP tools for Windows
| Operation | Command |
|---|---|
| Device check | mtp-detect |
| List files | mtp-filetree |
mtp-files |
|
| Copy file from device | mtp-getfile <fileid> <dest_filepath> |
mtp-connect --getfile <src_filename> <dest_filepath> |
|
| Copy file into device | mtp-sendfile <src_filepath> <dest_filename> |
mtp-connect --sendfile <src_filepath> <dest_filename> |
|
| Delete file in device | mtp-delfile -n <file_id> |
mtp-delfile -f <filename> |
|
mtp-connect --delete <filename> |
|
| Create folder | mtp-newfolder <foldername> 0 <storage_id> |
mtp-connect --newfolder <foldername> |
|
| Create sub-folder | mtp-newfolder <foldername> <parentfolder_id> <storage_id> |
| Format device | mtp-format |
Detailed information can be found in DETAILED_USAGE.md
Instruction on compiling mtp-tools from source code are available in COMPILING.md