07-22-2019 09:13 AM
File locations are different in Development Mode and as an Executable. A "safe" way to get the File Location is to save it in the Project (I usually have a Data Folder in my Project) and to access it via Relative Path names and either Static VI References (which are always correct whether in Development or Application mode) or references to "This VI" (with relative path-finding to your Data Folder). Here's an example of the latter:This VI's Folder
This will point to the folder in the Project where This VI is saved. If the Data Folder is, for example, up one level and is named "Config", you could "point" to "Config\Config.ini" by concatenating "..\Config\Config.ini" at the end of This VI's Folder and it should find the file, both in Development Mode and in Application Mode.
Bob Schor