B4X:
Sub Button1_Click
Dim MyList As List
Dim MyFile As String
Dim i As Short
Dim p As Phone
Dim FilePathSource As String :FilePathSource=File.DirAssets
Dim FilePathDest As String :FilePathDest=File.DirRootExternal & "/Audio"
MyList.Initialize
MyList=File.ListFiles(FilePathSource)
For i=0 To MyList.Size-1
MyFile=MyList.Get(i)
If MyFile.Contains("SUN")=True Then
Try
File.MakeDir(File.DirRootExternal, "/Audio")
'Msgbox
File.Copy(FilePathSource,MyFile,FilePathDest,MyFile)
Catch
End Try
End If
Next
End Sub
How do i copy this mp3 files in at once, with this title through using and modifying this code?
Can you help me please? Thanks!:sign0085: