![]() ![]() PinWindow: pin process with name or id to all desktops (short: /pw). CloseWindowsOnDesktop close windows on desktop number, desktop with text in name or desktop with number in pipeline (short: /cwod). ![]() ListWindowsOnDesktop list handles of windows on desktop number, desktop with text in name or desktop with number in pipeline (short: /lwod). IsWindowHandleOnDesktop: check if window with text in title or handle is on desktop with number in pipeline (short: /iwhod). IsWindowOnDesktop: check if process with name or id is on desktop with number in pipeline (short: /iwod). GetDesktopFromWindowHandle: get desktop number where window with text in title or handle is displayed (short: /gdfwh). GetDesktopFromWindow: get desktop number where process with name or id is displayed (short: /gdfw). MoveActiveWindow move active window to desktop with number in pipeline (short: /maw). MoveWindowHandle: move window with text in title or handle to desktop with number in pipeline (short: /mwh). MoveWindow: move process with name or id to desktop with number in pipeline (short: /mw). MoveWindowsToDesktop:: move windows on desktop in pipeline to desktop number or desktop with text in name (short: /mwtd). MoveDesktop: move desktop in pipeline to desktop number or desktop with text in name (short: /md)(only VirtualDesktop11.exe). InsertDesktop: insert desktop number or desktop with text in name before desktop in pipeline or vice versa (short: /id)(not VirtualDesktop11.exe). SwapDesktop: swap desktop in pipeline with desktop number, desktop with text in name or desktop with number in pipeline (short: /sd). RemoveAll remove all desktops but visible (short: /ra)(only VirtualDesktop11.exe). Remove remove desktop number, desktop with text in name or desktop with number in pipeline (short: /r). Wrap /NoWrap /Left or /Right switch over or generate an error when the edge is reached (default)(short /w and /nw). Right switch to virtual desktop to the right of the active desktop (short: /ri). Left switch to virtual desktop to the left of the active desktop (short: /l). Switch switch to desktop with number, desktop with text in name or with number in pipeline (short: /s). IsVisible is desktop number, desktop with text in name or number in pipeline visible (short: /iv)? Returns 0 for visible and 1 for invisible. AllWallpapers: set wallpaper path of all desktops (short: /awp)(only VirtualDesktop11.exe). Wallpaper set wallpaper path of desktop with number in pipeline (short: /wp)(only VirtualDesktop11.exe). Name set name of desktop with number in pipeline (short: /na). GetCurrentDesktop get number of current desktop to pipeline (short: /gcd). GetDesktop: get number of virtual desktop or desktop with text in name to pipeline (short: /gd). Count get count of virtual desktops to pipeline (short: /c). List list all virtual desktops (short: /li). Break /Continue break (default) or continue on error (short: /b and /co). Verbose /Quiet enable verbose (default) or quiet mode (short: /v and /q). Parameters (leading / can be omitted or - can be used instead): The result of the last command is returned as error level. The result - most of the times the number of the processed desktop - can be used as input for the next parameter. Parameters can be given as a sequence of commands. Generate:Ĭompile with Compile.bat (no visual studio needed, but obviously Windows 10 or 11) Description:Ĭommand line tool to manage the virtual desktops of Windows 10 and 11. Using Compile.bat all executables will be generated. virtualdesktopinsider.cs is for Insider versions of Windows 11 (no guarantee for anything here). I provide six versions of virtualdesktop.cs now: virtualdesktop11.cs is for Windows 11, virtualdesktop11-21h2.cs for Windows 11 21H2, virtualdesktopserver2022.cs is for Windows Server 2022, virtualdesktop.cs is for Windto 22H2, virtualdesktopserver2016.cs is for Windows Server 2016. With Windows 11 22H2 Microsoft did change the API (COM GUIDs) for accessing the functions for virtual desktops again. (look for a powershell version here: or here: ) no flashing icons after switching desktops (nearly always).C# command line tool to manage virtual desktops in Windows 10 and Windows 11 ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |