Is there a way to start a program on a different desktop? Say if Desktop 2 is currently displayed, how could I open Notepad on Desktop 4?
How to launch a program on different desktop, using sysinternals desktops
sysinternalsvirtual-desktop
Related Question
- Windows 10 Virtual Desktops and multiple program instances
- Windows – How to force a program to open in a specific desktop
- Windows – Notepad++ one instance per each virtual desktop
- Windows virtual desktops. Cycle back to first desktop at end
- Windows – Stop Windows 10 virtual desktops from switching when opening programs
Best Answer
You will need to create a program for launching an executable on another desktop of Sysinternals Desktops.
This is possible to do with the Windows CreateProcess function by specifying the desktop name in the STARTUPINFO structure member of
lpDesktop
.The format is
windowstation\desktop
and may look like "winsta0\Sysinternals Desktop 1".To find the names of the Sysinternals desktop objects you may use the winsta tool that enumerates window stations and desktops in the current session (although you will need to compile it yourself).
Reference: Windows 10 Desktops vs. Sysinternals Desktops.