Documentation
use e_utils::system::cmd;
use std::path::Path;
fn main() {
    // 执行 slmgr.vbs 命令
    let output = cmd(
        "cscript",
        ["/nologo", "slmgr.vbs", "-xpr"],
        Some(Path::new("C:\\windows\\system32").to_path_buf()),
        false,
        false,
    )
    .unwrap();
    println!("out -> {:?}", output);
    // 在输出中查找激活状态
    if output.stdout.contains("激活") || output.stdout.contains("activated") {
        println!("Windows 已激活");
    } else {
        println!("Windows 未激活");
    }
}