How to read - write to network drive

kalarius

Active Member
Licensed User
Longtime User
I want to read a file from a network drive

I use cont=file.readlist("\\olduser\folder","sms.txt")

but it return error to acces this

I hava add to manifest the permision ....NETWORK
the drive belongs to windows XP system
 

kalarius

Active Member
Licensed User
Longtime User
read write network file attempt 2

I have use the smb library

dim smb1 as smb


smb1=intialize("smb1")

smb1.setCredentials("user1",1234","")

I have make the events sub

sub smb1_donloadfilecompleted (.........................)
log(status)
end sub



the proble is that nothing happens with the
smb1.downloadFile("smb://olduser/fakelos","sms.txt","/mnt/sdcard","sms.txt")

no event raise after the execution

it create the sms.txt at the sd card
but it does not get the file form the olduser machine
the olduser is windows XP pro machine and the user1 have password 1234
the other computers can get files from olduser

please advice
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…