命令行中的Windows 10虚拟桌面

Rev*_*evo 11 cmd shortcut windows-10

我想有一个创建多个Windows 10虚拟桌面的快捷方式文件,然后为每个屏幕运行自己的程序.

到目前为止,我知道如何使用命令行从命令行运行多个程序

@echo off
cd "to software directory"
start "software.exe"

cd "another one"
start "another.exe"

exit
Run Code Online (Sandbox Code Playgroud)

(代码来自http://www.makeuseof.com/tag/launch-multiple-programs-single-shortcut-using-batch-file/)

现在我在网上找不到的是一种从命令行自动创建虚拟桌面的方法,我可以使用C#并完成所有这些,但我想要一个更简单的方法......它可能吗?

小智 2

似乎没有任何方法可以单独从 CMD 操作虚拟桌面。

但是,通过批处理脚本创建虚拟桌面的一种可能方法是编译https://github.com/MScholtes/VirtualDesktop并将可执行文件放置在您的路径中,或者直接从脚本调用它。这可能是完成您所要求的事情的最简单方法。