I've created an environment where I use 3 different desktop configurations, but every time I reboot, I have to manually open each program in that target desktop to make it look like it did before.

So, I'd like to write a .bat file that can get all my programs running in their appropriate desktops. I'm wondering if something like this is possible:

"C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -desktop:2
"C:\Program Files\My\Other\Software.exe" -desktop:3

Obviously, this example is not real, but I hope there's something similar. I don't care if it's hacky :)


2 Answers 2


You can use the program VDesk to achieve this functionality.

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, while vdesk 3 notepad c:\text.txt opens Notepad on virtual desktop 3 and uses an argument to load text.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.


As of now, Windows 10 only have shortcut keys for creating a virtual desktop and switch between virtual desktops and peek inside virtual desktop. I don't think it is possible assign specific programs to specific virtual desktop.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .