From MediaMonkey Wiki
Jump to: navigation, search

CoClass SDBDevice, Interface ISDBDevice

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


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.

Introduced in MediaMonkey version 4.1.1.


    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