Hi all,
I have an Android only (not iPhone) application that has to copy files from the device to a PC using WI-FI. To copy I'm using the following command:
put myListOfData into URL ( "file:" & myFilename )
where myListOfData is a list comma delimited and myFilename has the complete path to the network computer in my development environment and it was hard-coded into myFilename, like "\\DEVENV\Users\myFile.csv".
It works fine and the file is copied to the networked computer.
The question is: how can I have a list of the computer names in the local network using WI-FI to be able to build the above filename string at runtime?
Thank you for the help!
Paulo
How to identify which computers are in the network
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 9
- Joined: Fri Apr 13, 2012 8:44 pm
Re: How to identify which computers are in the network
Hi Paulo,
Have you tried:
Works on Win 7.
Simon
Have you tried:
Code: Select all
on mouseUp
get shell("net view /all")
put it
end mouseUp
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
-
- Posts: 9
- Joined: Fri Apr 13, 2012 8:44 pm
Re: How to identify which computers are in the network
Hi Simon,
Yes this works fine. However there is no support to command line in the Android neither IOS and the Livecode app is running on devices, not on Windows.
An alternative way, more time consuming, it will be to create a Web Service to expose a list of the computers in the network, retrieved from a database online. Then the Livecode app could access the web service and show the list, asking the Operator/User to pick the one he/she wants to connect.
Anyways thank you very much for your help!
Best,
Paulo
Yes this works fine. However there is no support to command line in the Android neither IOS and the Livecode app is running on devices, not on Windows.
An alternative way, more time consuming, it will be to create a Web Service to expose a list of the computers in the network, retrieved from a database online. Then the Livecode app could access the web service and show the list, asking the Operator/User to pick the one he/she wants to connect.
Anyways thank you very much for your help!
Best,
Paulo