# process.window_hidden ## 功能 Windows 下隐藏 console 子进程窗口。该方法适合 bt-app 桌面应用或后台服务启动控制台程序,同时继续通过 stdout/stderr 管道读取进度。 ## 语法 ```bt process(program).window_hidden() ``` ## 参数 无参数。 ## 返回值 | 类型 | 说明 | | ------ | ------ | | Process | 返回新的进程构建器。 | ## 示例 ```bt cmd = process('docx_to_img.exe') .arg('@/docx') .window_hidden() .child() result = type(cmd) // 输出:Process print result ``` ## 注意事项 - Windows 下非 inherit_stdio() 场景默认已经隐藏 console 子进程窗口;显式调用 window_hidden() 可让业务代码更清晰。 - window_hidden() 会取消 inherit_stdio() 的交互 stdio 继承语义,child() 将继续使用默认 stdout/stderr 管道。 - Linux/macOS 下该方法不改变系统窗口行为,仅保留链式配置兼容性。