LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Get file info from a networked server

Solved!
Go to solution

I need to keep some files sync'd between a cRIO, and a network server. I would like to query the server for file sizes, then I can compare file sizes with the local cRIO files and FTP over any files that are not current. For the local machine (cRIO) I can use the "File/Directory Info Function" from the pallets. Hoping I can use the same function to query the network server, but not sure how that would work; would the server IP address be part of the file path? If so what is the syntax for that? If this won't work or if there is a better way, how would I go about this?

Thanks,

 

lmd2

Lawrence M. David Jr.
Certified LabVIEW Architect
cell: 516.819.9711
http://www.aleconsultants.com
larry@aleconsultants.com
0 Kudos
Message 1 of 4
(2,414 Views)
Solution
Accepted by topic author lmd2

Do it just like you would from your Windows machine.  For example:

\\computer name\folder\blah.txt


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
Message 2 of 4
(2,413 Views)

so to be clear, (and let's assume the client's machine is a windows server, not sure yet), my path would be:

 

 

IP_address\drive\directory\file

 

148.128.174.54\d:\dtaRuns\data03152014.txt

Lawrence M. David Jr.
Certified LabVIEW Architect
cell: 516.819.9711
http://www.aleconsultants.com
larry@aleconsultants.com
0 Kudos
Message 3 of 4
(2,402 Views)

Hi Lawrence,

 

You will need the two backslashes before the IP address and may not need to include drive information depending on the server.

 

\\148.128.174.54\dtaRuns\data3203913.txt    OR

\\148.128.174.54\d:\dtaRuns\data3203913.txt

Applications Engineer
National Instruments
0 Kudos
Message 4 of 4
(2,382 Views)