I’m launching my VB.NET application from the command line and then using the function IO.Directory.GetCurrentDirectory() in the application to get the current working directory. But the directory returned from this function is always the directory of my VB.NET EXE. If I cd to a directory from the command prompt and then run the VB.NET application, is there a way to get the working directory that the command prompt is using?
Thanks,
Ian
I think this is impossible so I found a way around it.