Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows 10 virtual desktop from command line

I would like to have a shortcut file that creates multiple Windows 10 virtual desktops, then for each screen to run its own programs.

I know so far how to run multiple programs from Command line by using

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

cd "another one"
start "another.exe"

exit

(Code from http://www.makeuseof.com/tag/launch-multiple-programs-single-shortcut-using-batch-file/)

Now what I couldn't find online is a way to auto create virtual desktops from command line, I could've used C# and do all that, but again i want a simpler way... Is it possible?

like image 350
Revo Avatar asked Oct 27 '15 12:10

Revo


2 Answers

I made this tool that presses the keys: https://github.com/ITCMD/Win-Tab

Syntax: Win+Tab.exe

Its as easy as that. Enjoy!

like image 77
Mark Deven Avatar answered Sep 27 '22 20:09

Mark Deven


It doesn't seem like there is any way to manipulate virtual desktops from CMD by itself.

However, one possible way of creating virtual desktops through a batch script would be to compile https://github.com/MScholtes/VirtualDesktop and place the executable in your path, or calling it directly from your script. This is probably the simplest way of doing what you're asking.

like image 36
Panda0nEarth Avatar answered Sep 27 '22 22:09

Panda0nEarth