LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
Neurox66
- Livecode Opensource Backer

- Posts: 120
- Joined: Tue May 22, 2012 1:57 pm
-
Contact:
Post
by Neurox66 » Thu May 29, 2014 7:21 am
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
Paolo Borzini | paolo@borzini.it
The WhiteFly Software | www.thewhitefly.it
Service on line for printers | www.4pellicole.it
-
Simon
- VIP Livecode Opensource Backer

- Posts: 3901
- Joined: Sat Mar 24, 2007 2:54 am
Post
by Simon » Thu May 29, 2014 7:34 am
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
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
-
Neurox66
- Livecode Opensource Backer

- Posts: 120
- Joined: Tue May 22, 2012 1:57 pm
-
Contact:
Post
by Neurox66 » Thu May 29, 2014 9:53 am
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
Paolo Borzini | paolo@borzini.it
The WhiteFly Software | www.thewhitefly.it
Service on line for printers | www.4pellicole.it
-
FourthWorld
- VIP Livecode Opensource Backer

- Posts: 10052
- Joined: Sat Apr 08, 2006 7:05 am
-
Contact:
Post
by FourthWorld » Thu May 29, 2014 2:36 pm
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?
-
Neurox66
- Livecode Opensource Backer

- Posts: 120
- Joined: Tue May 22, 2012 1:57 pm
-
Contact:
Post
by Neurox66 » Thu May 29, 2014 3:21 pm
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
Paolo Borzini | paolo@borzini.it
The WhiteFly Software | www.thewhitefly.it
Service on line for printers | www.4pellicole.it
-
FourthWorld
- VIP Livecode Opensource Backer

- Posts: 10052
- Joined: Sat Apr 08, 2006 7:05 am
-
Contact:
Post
by FourthWorld » Thu May 29, 2014 4:51 pm
I believe most mobile devices access NASes via an HTTP interface. Perhaps your NAS provides one. Which NAS are you using?
-
Neurox66
- Livecode Opensource Backer

- Posts: 120
- Joined: Tue May 22, 2012 1:57 pm
-
Contact:
Post
by Neurox66 » Fri May 30, 2014 2:05 pm
FourthWorld wrote:Which NAS are you using?
I'm using a Trekstor DataStation pocket air.
Paolo
Paolo Borzini | paolo@borzini.it
The WhiteFly Software | www.thewhitefly.it
Service on line for printers | www.4pellicole.it
-
Neurox66
- Livecode Opensource Backer

- Posts: 120
- Joined: Tue May 22, 2012 1:57 pm
-
Contact:
Post
by Neurox66 » Tue Jun 03, 2014 6:49 am
I've solved the problem on Android
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
Paolo Borzini | paolo@borzini.it
The WhiteFly Software | www.thewhitefly.it
Service on line for printers | www.4pellicole.it