can someone explain what for is startInfo.WorkingDirectory
in ProcessStartInfo, not sure how to use it.
var filePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "folder\\code.exe");
I want run one .exe file
ProcessStartInfo startInfo = new ProcessStartInfo(Environment.ExpandEnvironmentVariables(filePath));
startInfo.WorkingDirectory = Environment.ExpandEnvironmentVariables(@"%AppData%\\folder\\");
startInfo.WindowStyle = ProcessWindowStyle.Minimized;
Process.Start(startInfo);
what the difference
ProcessStartInfo startInfo = new ProcessStartInfo(filePath);
startInfo.WindowStyle = ProcessWindowStyle.Minimized;
Process.Start(startInfo);