02-26-2019 08:31 AM
So I have created an EXE using visual studio. I am trying to call it via Labwindows CVI using the system() function and It executes normally but this EXE is built to write data to an *.ini file so when I launch it myself it writes the data normally but when Labwindows CVI runs it, it can no longer write unto the result file.
Solved! Go to Solution.
02-27-2019 06:59 PM
How are you writing to the ini file in the program?
Can you also share your code snippet that calls the exe?
R Dahlman
02-28-2019 01:21 AM - edited 02-28-2019 01:22 AM
Hi DahlmanR,
Thank you for your suggestion but it has been solved the moment I used LabWindows/CVI as an administrator.
02-28-2019 01:48 AM
This could be explained if you installed the CVI program in c:\Program Files folder: that path is protected so that normal users / applications cannot write to it and subfolders, but those with elevated privileges can. If you for any reason don't want to grant administrative level to your app you could try installing it in another, non protected folder and it should behave correctly even if run normally.