A batch file is running my vb.net console application. This console application connects to an SQL database and inputs things such as the date and what the process (batch file) is doing. Instead of making the using write out the name of this batch file so that it is recorded and sent to the database, I would like to make it more automatic.
- So here is my question: Can a console application figure out the Filename/Filepath of the batch file that is starting it, without specifying it's directory within the application as this application will be run from numerous batch files that will come from different directories and the source code may not be available (just the exe).