Std::process is escaping a raw string literal when I don't want it to


Also maybe it’d be better to query the registry?

let output = Command::new("reg")
    .args(&["query", r#"HKLM\SOFTWARE\Microsoft\Office"#, "/k", "/f", "*.0"])
    .expect("failed to execute");


I created a runner that can handle this and encapsulated it into a mod{}. I’ve posted it to the internals.rust board in case anyone else needs it.

I too ended up using powershell, though my approach was different as powershell has weird eccentricities with multiple arguments