ISDBDevice::CopyFiles

From MediaMonkey Wiki
Revision as of 12:43, 31 March 2014 by Ludek (talk | contribs) (Created page with "{{MethodDeclaration|SDBDevice|ISDBDevice|Sub CopyFiles(DeviceHandle As Long, Sources As SDBStringList, Destinations as SDBStringList)}} ===Parameters=== {{MethodParamet...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

CoClass SDBDevice, Interface ISDBDevice

Sub CopyFiles(DeviceHandle As Long, Sources As SDBStringList, Destinations as SDBStringList)


Parameters

Name Type Description
DeviceHandle Long Handle of the device
Sources String Source file paths on PC
Destinations String Destination file paths on the device


Method description

Copies file to device.

Example

    Dim Sources
    Set Sources= SDB.NewStringList 
    Sources.Add "C:\Temp\MyFile.wmv"
    Sources.Add "C:\Temp\MyFile2.wmv"
    Dim Destinations
    Set Destinations= SDB.NewStringList 
    Destinations.Add "/Temp/MyFile.wmv"
    Destinations.Add "/Temp/MyFile2.wmv"
    SDB.Device.CopyFiles DeviceHandle, Sources, Destinations

To see how to handle copy result see example in CopyFile() method