MScholtes / VirtualDesktop

C# command line tool to manage virtual desktops in Windows 10
MIT License
606 stars 60 forks source link

move or start a program #53

Closed PeterM32 closed 1 year ago

PeterM32 commented 1 year ago

hello, thank you first of all for the great program. I would like to start or move a program with the name "123.exe" on the second desktop. Is this possible? Could you give me the code for it, since I don't really know my way around?

Thanks for your help.

greetings

MScholtes commented 1 year ago

Hello @PeterM32,

VirtualDesktop is no program starting utility. But when your program 123.exe is running you can move the window to the second desktop with:

virtualdesktop /GetDesktop:1 /MoveWindow:123

Greetings

Markus

PeterM32 commented 1 year ago

thank you for your help... I can combine this further

MScholtes commented 1 year ago

I think this is solved...