My app runs the Shell function quite a few times and requires a number of files that are essential for the app's calculations. In Shell, I give the app the specific path to each file.
RetVal = Shell("C:\program files\RequiredFile.exe", 0)
But I want to be able to distribute this app. With the code that I have, after moving the app and the required files to a different folder I would have to change the paths listed in the Shell functions in order for the app to use the required files.
It would be much easier if, keeping the app and required files in the same folder, there was a way for the Shell function to be told to look for the required files in the folder that the app is in, without having to mention a specific path. Is there such a way?
RetVal = Shell("C:\program files\RequiredFile.exe", 0)
But I want to be able to distribute this app. With the code that I have, after moving the app and the required files to a different folder I would have to change the paths listed in the Shell functions in order for the app to use the required files.
It would be much easier if, keeping the app and required files in the same folder, there was a way for the Shell function to be told to look for the required files in the folder that the app is in, without having to mention a specific path. Is there such a way?