How do you build the name of the files?
If you build the path relative to the VI path and you put the VI into an app the path gets one element longer. E. g. you have the VI in MyProject\MyVI.vi the app in the same location will give MyProject\MyApp.exe\MyVI.vi. You must take this into consideration when building the file path with the Strip path and Build path functions.
Place a property node on the block diagram with App class and the property App.Kind will give you where the VI is running. This way you can determine whether the VI runs in development or runtime environment.
Waldemar
Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions