Hi all,
I have an AHMI application which runs some external scripts from a folder, and logs to some CSV files in another folder. Because the application is running on a Compute Stick (very lightweight PC), I have to do the development on a different machine and then copy the files across.
When I want to test my changes, I just plug in the development PC and get my changes debugged, and then copy over to the runtime PC. The only problem is, if I want to make changes to the data logging or script calling, I can't do that, because the file structure is different on the development PC to the runtime PC, so all my code points to non-existent directories.
What I'd like to do is have the code more generic, and have it retrieve the required filepath from a settings screen, so that when I run it up on the development machine to test, I just have to change the filepath on the settings screen, and it will run fine. Then when I transfer it to the runtime PC, I change it back.
I have no problems with using VB to call the file select dialog to select my filepath, and I can probably then integrate that filepath into my code without too much trouble - but what I don't know is how the selected filepath can be "saved" within the application, so that if the PC gets rebooted, it's still got that filepath saved somewhere, and I don't have to re-select it every time the PC boots up.
Is there a way to do this?