✅ Does the value of CreateNoWindow matter when UseShellExectute=true?

ProcessStartInfo info = new()
{
    FileName = @"cmd",
    Arguments = @"actions.bat",
    CreateNoWindow = true, // either true or false it still creates a window
    UseShellExecute = true
};
using var process = new Process { StartInfo = info };
process.Start();
Was this page helpful?