LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Access folders of other pc connected to the network using my pc.

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.

0 Kudos
Message 1 of 9
(5,234 Views)

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

0 Kudos
Message 2 of 9
(5,226 Views)

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. 

0 Kudos
Message 3 of 9
(5,206 Views)

You can use UNC paths with most labview functions, you may need to escape the \ with an exta \

0 Kudos
Message 4 of 9
(5,198 Views)

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.

0 Kudos
Message 5 of 9
(5,190 Views)

@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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 6 of 9
(5,168 Views)


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.

0 Kudos
Message 7 of 9
(5,119 Views)

Correct.  The only way to access them is to share the folder.

0 Kudos
Message 8 of 9
(5,114 Views)

@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.

 

https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/menus/categories/data-communication/protoc...

 

0 Kudos
Message 9 of 9
(5,110 Views)