Open multiple programs in different workspaces using script in windows 10

3

I'm wanting to open some programs on different work screens that I have to use frequently. And I wanted to know how I make a script to automate this.

I made a small, simple .bat script to make it easier

echo Abrindo o Netbeans
start /d "C:\Program Files\NetBeans 8.2\bin\" netbeans64.exe

echo Abrindo o XAMPP
start /d "C:\xampp\" xampp-control.exe

echo Abrindo PowerShell
start /d "%SystemRoot%\system32\WindowsPowerShell\v1.0\" powershell.exe 

I also like to open Spotify, Onenote, Browser, but I wanted it to open in another desktop.

I'm using Windows 10 PRO.

    
asked by anonymous 24.08.2017 / 21:22

1 answer

2

You can do this by downloading VDesk (VDeskSetup-1.0.2.msi) and installing it. When you finish the installation you will notice that a new command will be available in the cmd, 'vdesk'. With this, just use the vdesk command to run applications in a new workspace or in a specific workspace, look at the examples:

vdesk run:notepad

Run notepad on a new workspace.

vdesk on:5 run:notepad

Run notepad on desktop 5.

For more examples read this article . Since it is a command available in cmd, you have to put in a * .bat, which is your goal, just replace notepad with your application and set the desired desktop.

    
24.08.2017 / 21:43