File.Copy to a specific folder on the SD card

PFlores81

Active Member
Licensed User
Longtime User
Is it possible to use the File.Copy command to copy to a specific folder on the sdcard?
 

Mahares

Expert
Licensed User
Longtime User
Below you are copying a file called Test.txt from a folder called PFlores81 in the internal folder to the SD card folder name PFlores81. You are giving the destination file name the same name as the source file name:

B4X:
File.Copy(File.DirInternal & "/PFlores81","Test.txt",File.DirRootExternal & "/PFlores81","Test.txt")
 
Upvote 0

PFlores81

Active Member
Licensed User
Longtime User
Below you are copying a file called Test.txt from a folder called PFlores81 in the internal folder to the SD card folder name PFlores81. You are giving the destination file name the same name as the source file name:

B4X:
File.Copy(File.DirInternal & "/PFlores81","Test.txt",File.DirRootExternal & "/PFlores81","Test.txt")

Whooo, thank you so much.. it worked like a charm!
 
Upvote 0
Top