Android Question Copying a file from a local server

fatman

Active Member
Licensed User
Longtime User
Hi to all,

sure a simple question- but i haven´t found an answer so far.
I´m trying to copy a textfile from a local sql-server and i´m checking if the file exits first like that:

B4X:
If File.exists("\\srv-sql01\documents\mydocuments\","data.csv") = True Then
    Msgbox("File exists","Message")
End If
That does not work. What am i doing wrong?

Thx in advance for hints and suggestions

Fatman
 

DonManfred

Expert
Licensed User
Longtime User
\\srv-sql01\documents\mydocuments\
if this in a network-share

Use a SMB Library. jcif-ng for example. jcif-ng can work with SMB 2/3 Protocol.

If the share is using SMB 1 Protocol then you also can use the SMB Library.
 
Last edited:
Upvote 0

Walter Lucindo

New Member
Licensed User
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…