Page 1 of 1

External HardDisk

Posted: Thu May 29, 2014 7:21 am
by Neurox66
Hi,
I've a problem :)

I've a external harddisk connected to a Router WiFi Alice Gate 2 Plus via USB.
The HD are seen by OSx and Windows.
I would read the files with LiveCode but don't see it.
I've made various test:

Code: Select all

put url "http://192.168.1.1/A/test/testo.txt" into tDati
put url "http://alicegate/A/test/testo.txt" into tDati
put url "binfile://alicegate/A/test/testo.txt" into tDati
put url "file://alicegate/A/test/testo.txt" into tDati
but without result :(
Any hints?

Thanks,
Paolo

Re: External HardDisk

Posted: Thu May 29, 2014 7:34 am
by Simon
Hi Paolo,
Try this:

Code: Select all

on mouseUp
   answer file "Pick a file"
   put it
end mouseUp
Select a file on your external drive and the messagebox will show you the path.

Simon

Re: External HardDisk

Posted: Thu May 29, 2014 9:53 am
by Neurox66
Simon wrote:

Code: Select all

on mouseUp
   answer file "Pick a file"
   put it
end mouseUp
Simon thanks for the suggestion.

Code: Select all

put url("binfile://Volumes/A/test/testo.txt") into tDati
... and run ok on OSX and Windows...
but in iOS and Android? Any Idea?

Paolo

Re: External HardDisk

Posted: Thu May 29, 2014 2:36 pm
by FourthWorld
Run the "answer file" command on Windows and you'll see it uses a different convention: the path is dependent on the mount point drive letter rather than the volume name (though in some respects not much different from the mount point permutations you'll see on OS X if you mount two drives with the same name). Two ways around that could be to check each drive for a specific file (if you're looking for one) based on the list returned from the LiveCode "volumes" function, or dive into the registry and obtain what you need from there (HKLM\SYSTEM\MountedDevices if memory serves).

As for iOS - how does one mount an external drive there?

Re: External HardDisk

Posted: Thu May 29, 2014 3:21 pm
by Neurox66
Thanks.
On Windows and OSX are running very well.
From my app on Windows and Mac reading the files under the NAS :)
The problems are on Android and iOS, don't see the files on NAS :(

Paolo

Re: External HardDisk

Posted: Thu May 29, 2014 4:51 pm
by FourthWorld
I believe most mobile devices access NASes via an HTTP interface. Perhaps your NAS provides one. Which NAS are you using?

Re: External HardDisk

Posted: Fri May 30, 2014 2:05 pm
by Neurox66
FourthWorld wrote:Which NAS are you using?
I'm using a Trekstor DataStation pocket air.

Paolo

Re: External HardDisk

Posted: Tue Jun 03, 2014 6:49 am
by Neurox66
I've solved the problem on Android :D
How I did it:
I've installed the app CifsManager with the rights of Root.
With CifsManager I've mounted the external HD in /mnt/ position.
My App reading the sql files without problems.

Only missing find a solution for iOS :(

Paolo