Windows 10 - virtual desktop startup automation
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game Looping
--
Chapters
00:00 Windows 10 - Virtual Desktop Startup Automation
01:05 Accepted Answer Score 15
02:23 Answer 2 Score 3
03:07 Answer 3 Score 0
03:26 Answer 4 Score 0
03:50 Thank you
--
Full question
https://superuser.com/questions/1034074/...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#windows10 #powershell #virtualdesktop
#avk47
ACCEPTED ANSWER
Score 15
Use the application VDesk.
VDesk for Windows 10: launch programs on virtual desktops
Vdesk is a portable program for Windows that adds the feature to Windows 10. It is a command line program but ships with an option to integrate its functionality in File Explorer.
The main command looks like this:
vdesk [n] [command [args]]
- n sets the index of the virtual desktop you want to launch the program on.
- [command [args]] specifies the program and arguments that you want it to start.
The command
vdesk notepad.exe
launches Notepad on a new virtual desktop, whilevdesk 3 notepad c:\text.txt
opens Notepad on virtual desktop 3 and uses an argument to loadtext.txt
automatically.You can run the application on start of Windows 10 to always load programs on virtual desktops when the operating system starts by creating simple batch files, and adding them to one of the many startup locations of the operating system.
The option to launch a program on a new virtual desktop can be added to File Explorer as well. You need to run vdesk -install for that on the command line, and will notice afterwards that a new "open in new virtual desktop" option is available when you right-click on executable files in File Explorer.
The command vdesk -uninstall removes the entry from File Explorer again.
ANSWER 2
Score 3
As of right now, there is only a few limited keyboard and mouse controls for Windows 10's virtual desktops. I looked, hoping to find PowerShell commands... but unfortunately, not.
Since you specifically stated "on startup," You can write a script to do this using the keyboard commands. In the scripting language of your choice, start the apps you want on the first desktop. Then send Ctrl+Win Key+Right Arrow to move to the next desktop. Then start your next applications. Repeat as necessary. Obviously, you will have to test this. You may have to insert some pauses, or whatever, but it should work.
ANSWER 3
Score 0
I created a simple script that allows you to start a bunch of items in one go (on different desktops):
https://github.com/SuperflyJon/FileStarter
Turns out that lots of apps startup in their own special way, so no guarantees this script will work for everything and it's a bit fiddly to setup lots of items...
ANSWER 4
Score 0
To keep this up to date, and for anyone else that arrives via Google, there's another solution if you have an NVidia graphics card.
You can use the NVidia RTX Desktop Manager. You can create profiles within this that will open desktops and programs as you wish. You can save down multiple profiles and set one to open on startup and assign shortcut keys to profiles too.
Quite useful in the scenario you described.