Even with #![windows_subsystem = "windows"] at the top of my application, using std::process::Command creates a console window for 0.1 to 0.3 seconds. Is there a way to use std::process::Command in an hidden way?
In C#, I could've used p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; — is there something similar for Rust?
Example usage of std::process::command that creates a console window:
Command::new("cmd").args(&["/C", "start", &exe_path]);
exePath is the path to a Windows GUI Application.