Difference between revisions of "ISDBDevice::CopyFiles"

From MediaMonkey Wiki
Jump to: navigation, search
(Created page with "{{MethodDeclaration|SDBDevice|ISDBDevice|Sub CopyFiles(DeviceHandle As Long, Sources As SDBStringList, Destinations as SDBStringList)}} ===Parameters=== {{MethodParamet...")
 
 
Line 11: Line 11:
  
 
Copies file to device.
 
Copies file to device.
 +
 +
{{Introduced|4.1.1}}
  
 
===Example===
 
===Example===

Latest revision as of 12:55, 31 March 2014

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.

Introduced in MediaMonkey version 4.1.1.


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