03-11-2016 08:31 AM - edited 03-11-2016 08:32 AM
Hi,
I want to write a code that allows me to access folders in different pc´s using my pc. All the pc are connected to the same network. So how can I do that. Can someone please give me an idea or which vis should I use to connect to the pc and access their folders. Thanking You.
03-11-2016 08:43 AM
I think easiest way for you make shared folder (https://www.google.ru/search?q=windows+shared+folder&ie=utf-8&oe=utf-8&gws_rd=cr&ei=y9jiVsLyDbDe6QSZ...
In that case you can access that folder from another PC with name like \\PC_name\folder_name and use standart File I/O palette
03-11-2016 09:13 AM
The thing is i forgot to mention is, I want to do it in labview. I need to access a folder in other using code written in labview in my pc. All pcs are connected to the same network.
03-11-2016 09:16 AM
You can use UNC paths with most labview functions, you may need to escape the \ with an exta \
03-11-2016 09:21 AM
If target folder closed, you can't get access distantly.
If folder shared, you can access it from LabVIEW using standard functions.
You can write like file manager program, but in this way you must run programs on both PC.
03-11-2016 11:15 AM
@vindsan wrote:The thing is i forgot to mention is, I want to do it in labview. I need to access a folder in other using code written in labview in my pc. All pcs are connected to the same network.
Everybody is giving you the right answer. You must make the folder you want to access on the other computer shared. Then you just use the standard File I/O functions using paths just like you would through Windows Explorer.
03-14-2016 08:55 AM
Thank You very much for your kind reply. I want to know is that the only way to do this. As in I cannot access the folders from another pc on my network without making it shared. Is that what you are saying. Making it shared is the only way for me to access those folders via labview. Thank You.
03-14-2016 09:04 AM
Correct. The only way to access them is to share the folder.
03-14-2016
09:12 AM
- last edited on
11-06-2024
01:08 PM
by
Content Cleaner
@vindsan wrote:
As in I cannot access the folders from another pc on my network without making it shared. Is that what you are saying. Making it shared is the only way for me to access those folders via labview. Thank You.
This is by far the easiest method to access files / folders across the network, but not the only method. Another common and fairly simple method would be FTP.