Jump to content

My app can't find included text files


Recommended Posts

I have written a very simple vi that uses a number variable to call various text files into a text string. It works well in the design mode. When I build my app, I include these text files, and upon install, it places them in the install directory/data/ just as I asked it to do in the app builder. When I run my app, it cannot find the text files. In the design mode, I had all my text files in a directory on my hard drive, and they were called from there. What do I do so that my vi knows to search in the \wherever\data directory after install?

Thanks for your help!

Jay

Link to comment
If you use "Current VI's Path" then take in account that the returned path in an exectuable is of this way:

<installation dir>\<executable>.exe\<vi-name>.vi

So in the dev-env you use one "strip path" to get the directory, but in the executable you'll need TWO "strip path"...

I will give that a try this evening....

Thanks

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.