In Debug Mode, I can successfully obtain the directory of the executable path, and here is a reference link on how that is achieved:
Obtaining Application Folder Path
The problem is that none of these methods are effective in Release Mode. It doesn't error out, but the line of code gets skipped over completely. An example of a code snippet that won't execute is:
Dim strDir as String = Environment.CurrentDirectory
In debug mode, the above executes properly (strDir will contain the appropriate directory). In release mode, the above will skip execution completely, leaving strDir as Nothing or empty. Any ideas on what I can do?
Thanks!