在特定桌面上启动进程
Start process on a specific desktop
如何在特定的 Windows 桌面上启动 Windows 进程?
最好,我们正在寻找一种解决方案,它也受 Windows 8.1 支持,即不依赖于 Windows 10 的新任务视图功能。我知道,在 Windows 8.1 中用户无法轻松访问不同的桌面,但仍然支持它们。
我们的目标是让开发人员 运行 在后台使用我们的 Web 测试套件 - 不会干扰浏览器 window 他们的工作。
不幸的是,Google 搜索没有找到任何结果:-(
注意:虽然我们使用的是 .NET/C#,但我们对 WinAPI 调用也非常满意。
您可以使用 STARTUPINFO.lpDesktop
when creating the process via CreateProcess
. For an example, see Start process on the other desktop, Python, Windows.
但是,这需要控制流程创建。要在另一个桌面上获得网络测试套件 运行,您可能必须以某种方式将其修补到您的网络测试 运行ner(例如,ChromeDriver
)。
如何在特定的 Windows 桌面上启动 Windows 进程?
最好,我们正在寻找一种解决方案,它也受 Windows 8.1 支持,即不依赖于 Windows 10 的新任务视图功能。我知道,在 Windows 8.1 中用户无法轻松访问不同的桌面,但仍然支持它们。
我们的目标是让开发人员 运行 在后台使用我们的 Web 测试套件 - 不会干扰浏览器 window 他们的工作。
不幸的是,Google 搜索没有找到任何结果:-(
注意:虽然我们使用的是 .NET/C#,但我们对 WinAPI 调用也非常满意。
您可以使用 STARTUPINFO.lpDesktop
when creating the process via CreateProcess
. For an example, see Start process on the other desktop, Python, Windows.
但是,这需要控制流程创建。要在另一个桌面上获得网络测试套件 运行,您可能必须以某种方式将其修补到您的网络测试 运行ner(例如,ChromeDriver
)。