LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Converting an absolute path on a local PC to an absolute path on a network drive

Greetings everyone. This is probably real simple but for some reason I am having issues getting it to work. I have inherited many older Labview programs that I have been modifying and one of them has several absolute paths to a local folder on the PC. This program has to be converted to run on a PC that is connected to a test server to write files to a specific folder on the server. I need to replace the paths to the local PC to the paths on the server connected PC. Below is a sample of existing and new paths:

 

Existing Path Local PC:

C:\Test Systems\Master Software\Test Set INI's

 

New Path on PC connected to Server  (Already exists). This info is taken by navigating to the subject folder "Test Set INI's"

ProductionTest(\\usfrk-aqitest1)(Z:) > Master Software > Test Set INI's

 

Hope this makes sense. Thanks for any and all help.

0 Kudos
Message 1 of 2
(788 Views)

@Dragonrider wrote:

New Path on PC connected to Server  (Already exists). This info is taken by navigating to the subject folder "Test Set INI's"

ProductionTest(\\usfrk-aqitest1)(Z:) > Master Software > Test Set INI's

 

Hope this makes sense. Thanks for any and all help.


What is the proper greeting for a Dragon Rider?

 

Anyway, if I understand your situation, here's an easy test you can do:

  1. Open File Explorer.
  2. Navigate to Z:\Master Software\Test Set INI's
  3. I'm guessing this has .ini files, which you should be able to select and open with Notepad, for example.

If all this is correct, then in your LabVIEW code, you should be able to (similarly) find the Folder by specifying the address "Z:\Master Software\Test Set INI's" .  This will be a folder, of course, so to open a file in the folder, you'd have to add the file name.

 

Note that for this to work, the Z drive needs to be "mapped in advance" to its target (which I'm assuming is the case).

 

Bob Schor

0 Kudos
Message 2 of 2
(754 Views)