Reputation: 437
I am writing a C++ program (MFC) that is to automatically transfer file between a desktop and a tablet. However, the tablet I am using is recognized as an MTP device and is not assigned a drive letter; therefore I'm unable to access the internal folder from C++ (unless there is a way, but I couldn't find one).
Is there a way to run adb through C++ to automate the file transfer. Or maybe through a VB Script?
I'm just trying to find anyway to transfer the files automatically.
Thanks,
Upvotes: 1
Views: 2627
Reputation: 44414
adb push
is an obvious way, running adb from system()
or ::CreateProcess()
.
Upvotes: 1
Reputation: 339
You fail to get the MTP assignment when you have debugging enabled by default. You can manually navigate the menu in the device and select to connect mass storage, (at which time you should see the stroage appear with it's respective drive letter), or disable debugging and choose to connect mass storage as the default when usb is connected, (and it will always connect and show the drive letter). Once the device is in the correct mode you should have no trouble connecting to the onboard storage.
Upvotes: 0