Hi,
I am developing my program on a different machine but then I take the executable to a different machine to run. The program gets data over the serial port that I write to a file for later analysis. My problem is that when I run the program on the second computer I have to go and change the file folder name where the data will be saved. This is not a big deal but problem comes in if I forget to change the folder/file name, then no data is saved. I am wondring if it is possible to do
1.) Figure out the file path where the executable is sitting as soon as the program runs
2.) and then based on that file path create another folder in that location for the data file.
Let me know if all this makes sense or not. Any help will be appreciated and thanks in advance.