Skip to content

Commit

Permalink
Update to V1.14
Browse files Browse the repository at this point in the history
  • Loading branch information
MScholtes authored Aug 30, 2023
1 parent c2550fe commit 9f7c55b
Show file tree
Hide file tree
Showing 9 changed files with 2,667 additions and 24 deletions.
4 changes: 4 additions & 0 deletions Changes.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
Changes:

Version 1.14, 2023-08-29
- version for Windows 11 22H2.2215 and up called VirtualDesktop11-23H2.cs
- removed VirtualDesktopInsider.cs

Version 1.13, 2023-06-25
- no flashing icons after switching desktops (nearly always)

Expand Down
2 changes: 1 addition & 1 deletion Compile.bat
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
setlocal

C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe "%~dp0VirtualDesktop11.cs" /win32icon:"%~dp0MScholtes.ico"
C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe "%~dp0VirtualDesktop11-23H2.cs" /win32icon:"%~dp0MScholtes.ico"
C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe "%~dp0VirtualDesktop11-21H2.cs" /win32icon:"%~dp0MScholtes.ico"
C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe "%~dp0VirtualDesktop.cs" /win32icon:"%~dp0MScholtes.ico"
C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe "%~dp0VirtualDesktopServer2022.cs" /win32icon:"%~dp0MScholtes.ico"
C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe "%~dp0VirtualDesktopServer2016.cs" /win32icon:"%~dp0MScholtes.ico"
C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe "%~dp0VirtualDesktopInsider.cs" /win32icon:"%~dp0MScholtes.ico"

:: was batch started in Windows Explorer? Yes, then pause
echo "%CMDCMDLINE%" | find /i "/c" > nul
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ C# command line tool to manage virtual desktops in Windows 10 and Windows 11

**Pre-compiled binaries in Releases now**

**Version 1.13, 2023-06-25**
- no flashing icons after switching desktops (nearly always)
**Version 1.14, 2023-08-29**
- version for Windows 11 22H2.2215 and up called VirtualDesktop11-23H2.cs
- removed VirtualDesktopInsider.cs

(look for a powershell version here: https://github.com/MScholtes/PSVirtualDesktop or here: https://www.powershellgallery.com/packages/VirtualDesktop)

**With Windows 11 22H2 Microsoft did change the API (COM GUIDs) for accessing the functions for virtual desktops again. 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 Windows 10 1809 to 22H2, virtualdesktopserver2016.cs is for Windows Server 2016. virtualdesktopinsider.cs is for Insider versions of Windows 11 (no guarantee for anything here). Using Compile.bat all executables will be generated.**
**With Windows 11 22H2 Release 2215 Microsoft did change the API (COM GUIDs) for accessing the functions for virtual desktops again. I provide six versions of virtualdesktop.cs now: virtualdesktop11.cs is for Windows 11 22H2 up to release 2134, virtualdesktop11-21h2.cs for Windows 11 22H2 release 2215 and newer (including Insider) versions, virtualdesktop11-21h2.cs for Windows 11 21H2, virtualdesktopserver2022.cs is for Windows Server 2022, virtualdesktop.cs is for Windows 10 1809 to 22H2, virtualdesktopserver2016.cs is for Windows Server 2016. Using Compile.bat all executables will be generated.**

## Generate:
Compile with Compile.bat (no visual studio needed, but obviously Windows 10 or 11)
Expand Down
8 changes: 4 additions & 4 deletions VirtualDesktop.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Author: Markus Scholtes, 2023
// Version 1.13, 2023-06-25
// Version 1.14, 2023-08-29
// Version for Windows 10 1809 to 22H2
// Compile with:
// C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe VirtualDesktop.cs
Expand All @@ -20,8 +20,8 @@
[assembly:AssemblyCopyright("© Markus Scholtes 2023")]
[assembly:AssemblyTrademark("")]
[assembly:AssemblyCulture("")]
[assembly:AssemblyVersion("1.12.0.0")]
[assembly:AssemblyFileVersion("1.12.0.0")]
[assembly:AssemblyVersion("1.14.0.0")]
[assembly:AssemblyFileVersion("1.14.0.0")]

// Based on http://stackoverflow.com/a/32417530, Windows 10 SDK, github project Grabacr07/VirtualDesktop and own research

Expand Down Expand Up @@ -2542,7 +2542,7 @@ private static void InsertDesktop(int InsertIndex1, int InsertIndex2)

static void HelpScreen()
{
Console.WriteLine("VirtualDesktop.exe\t\t\t\tMarkus Scholtes, 2023, v1.13\n");
Console.WriteLine("VirtualDesktop.exe\t\t\t\tMarkus Scholtes, 2023, v1.14\n");

Console.WriteLine("Command line tool to manage the virtual desktops of Windows 10.");
Console.WriteLine("Parameters can be given as a sequence of commands. The result - most of the");
Expand Down
8 changes: 4 additions & 4 deletions VirtualDesktop11-21H2.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Author: Markus Scholtes, 2023
// Version 1.13, 2023-06-25
// Version 1.14, 2023-08-29
// Version for Windows 11 21H2
// Compile with:
// C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe VirtualDesktop11.cs
Expand All @@ -20,8 +20,8 @@
[assembly:AssemblyCopyright("© Markus Scholtes 2023")]
[assembly:AssemblyTrademark("")]
[assembly:AssemblyCulture("")]
[assembly:AssemblyVersion("1.12.0.0")]
[assembly:AssemblyFileVersion("1.12.0.0")]
[assembly:AssemblyVersion("1.14.0.0")]
[assembly:AssemblyFileVersion("1.14.0.0")]

// Based on http://stackoverflow.com/a/32417530, Windows 10 SDK, github project Grabacr07/VirtualDesktop and own research

Expand Down Expand Up @@ -2526,7 +2526,7 @@ private static void SwapDesktops(int SwapIndex1, int SwapIndex2)

static void HelpScreen()
{
Console.WriteLine("VirtualDesktop.exe\t\t\t\tMarkus Scholtes, 2023, v1.13\n");
Console.WriteLine("VirtualDesktop.exe\t\t\t\tMarkus Scholtes, 2023, v1.14\n");

Console.WriteLine("Command line tool to manage the virtual desktops of Windows 11.");
Console.WriteLine("Parameters can be given as a sequence of commands. The result - most of the");
Expand Down
Loading

0 comments on commit 9f7c55b

Please sign in to comment.