LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Path location on EXE different PCs

Solved!
Go to solution

Hi all,

I have an EXE(and Source code) that updates a report everything is run, the EXE works great on my PC but when I move the  EXE to the machines it was made for it works but doesn't update the report i think is a path issue.

 

I locate the template in the same location for all other machines but i think the issue is the name of the PCs,

Each PC has a different name,PC1, PC2 PC3..

 

So is there a way or nomenclature in Labview to telling the EXE to go to the Documents file\Report file\Report.

without including the name of the PC ? 

 

Thank you

 

Shawn19_0-1602684686386.png

 

 

0 Kudos
Message 1 of 3
(1,608 Views)

1. don't use absolute paths.  Use a relative path with respect to the "application directory" / "strip path" / "build path"

2. Check if your target folder exists.  If not, create it.

 

0 Kudos
Message 2 of 3
(1,592 Views)
Solution
Accepted by topic author Shawn19

Use can always use Get System Directory function to get the Public Doc or My Doc folder.

 

image.png

 

 

George Zou
0 Kudos
Message 3 of 3
(1,550 Views)