05-14-2007 06:37 AM
05-15-2007 09:01 AM
Hi Tom,
The default directory should be settable from within the INI file, so I am curious why this is not working for you. What is the exact token that you see in the INI file? Is the INI file stored in the same directory as your EXE? Would you like to access files in the default directory, or the default data directory?
As a simple test, you can create a simple application that merely displays the default directory on a front panel indicator. Changing the appropriate INI token (for default directory or default data directory) should take effect when you open up your built application.
Once I receive your response, I will work on recreating the issue on my end. At that point, I can begin researching a few methods to take care of this issue and get your application up and running.
Regards,
Casey Weltzin
Applications Engineer
National Instruments
05-16-2007 07:41 AM
Upon further review, I had a couple of issues. And, of course!, one of them was that my program had a bug! OOPS! However, when i just updated the .ini file with the new path name, it didn't recognize the change. When I recompiled the exe and transferred the new .ini file to the computer in question, that seemed to work. My program is now working. I still am curious to know why I can no longer change the default directory from tools - options - paths. In previous versions that was an easy way to set the default directory in an exe. Now that functionality has been removed.
Tom
05-16-2007 07:57 AM
Hi Tom,
I am glad that you were able to get your program up and running! So changing the INI token on the target machine directly did not work? What exactly did you do to finally resolve the issue? I am curious why a recompile ultimately fixed the problem.
Off hand, I am not sure why this functionality has been removed from current versions of LabVIEW. I would definitely encourage you to submit a product suggestion at ni.com/contact; our developers carefully look at each and every suggestion submitted.
Have a great day Tom!
Casey Weltzin
Applications Engineer
National Instruments
05-16-2007 08:02 AM