Python& ActiveSync文件交换

时间:2017-03-30 07:46:21

标签: python python-3.x activesync

我有以下问题: 我想从(windows)移动设备复制一些带有python3脚本的文件,该设备通过ActiveSync连接到Windows计算机。

我尝试了这样,显示了3个失败的Path-trys:

def CopyDir(LocDir, DestDir):
    shutil.copytree(LocDir, DestDir)

Dir = '%%CSIDL_PROGRAM_FILES%%\MD_Data' # Path worked in .bat - but not here
Dir = 'Computer\Pocket_PC\\\Program Files' # Direct path out of windows explorer - didn't work
Dir = '::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\\\?\activesyncwpdenumerator#umb#2&306b293b&0&activesyncwpddevice-ab5f2fe4-d830-f1e7-d806-33298de2d8ee-#{6ac27878-a6fa-4155-ba85-f98f491d4f33}\f%7CS%7C%5C\f%7CF%7C%5CProgram%20Files%5C' # Cryptic path read out by a windows clipboard tool - didn't work

CopyDir(Dir, DestDir+'\\MD_Data')

错误始终相同:系统无法找到路径

现在我问自己,我是否只是使用错误的路径格式进行ActiveSync?或者我需要任何特殊的ActivSync模块? (没找到一个)

提前谢谢!

0 个答案:

没有答案