I’m firing off a Java application from inside of a C# .NET console application. It works fine for the case where the Java application doesn’t care what the ‘default’ directory is, but fails for a Java application that only searches the current directory for support files.
Is there a process parameter that can be set to specify the default directory that a process is started in?
Yes! ProcessStartInfo Has a property called WorkingDirectory, just use: