Network Filecopy ..again

eilert

Member
Licensed User
Longtime User
Hi..
Sorry about this, but does someone have an working example
on how to copy a text file to a shared pc folder..
I have been struggling with the examples posted in the forum
but without any success

tore
 

fatman

Active Member
Licensed User
Longtime User
Network filecopy

Hi eilert,

I used this code (basic4ppc- but should work also with basic4android) for copying csv-files from a barcodescanner to a notebook via an accesspoint (wlan):

FileCopy (source, "\\fair\transfer\" & destination )

Source : string containing path and filename
"\\fair\transfer\" : Destination directory on notebook c:\fair\transfer\
Destination : Filename like test.csv

Make sure that your destination folder is "really" a shared one. I spent a lot of time searching because copying wont work right away from the start.

Hope this helps...
 
Upvote 0
Top