diff --git a/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 index 843362076..af6e63da1 100644 --- a/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 @@ -7278,7 +7278,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int switch ($Choice) { - {$DriveLetters -contains $Choice} + {$DriveLetters -notcontains $Skip} { Set-UserShellFolder -UserFolder Desktop -FolderPath "$($Choice)\Desktop" -RemoveDesktopINI } @@ -7306,7 +7306,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int switch ($Choice) { - {$DriveLetters -contains $Choice} + {$DriveLetters -notcontains $Skip} { Set-UserShellFolder -UserFolder Documents -FolderPath "$($Choice)\Documents" -RemoveDesktopINI } @@ -7334,7 +7334,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int switch ($Choice) { - {$DriveLetters -contains $Choice} + {$DriveLetters -notcontains $Skip} { Set-UserShellFolder -UserFolder Downloads -FolderPath "$($Choice)\Downloads" -RemoveDesktopINI } @@ -7362,7 +7362,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int switch ($Choice) { - {$DriveLetters -contains $Choice} + {$DriveLetters -notcontains $Skip} { Set-UserShellFolder -UserFolder Music -FolderPath "$($Choice)\Music" -RemoveDesktopINI } @@ -7390,7 +7390,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int switch ($Choice) { - {$DriveLetters -contains $Choice} + {$DriveLetters -notcontains $Skip} { Set-UserShellFolder -UserFolder Pictures -FolderPath "$($Choice)\Pictures" -RemoveDesktopINI } @@ -7418,7 +7418,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int switch ($Choice) { - {$DriveLetters -contains $Choice} + {$DriveLetters -notcontains $Skip} { Set-UserShellFolder -UserFolder Videos -FolderPath "$($Choice)\Videos" -RemoveDesktopINI } diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 index 95964dd20..4101c877f 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 @@ -5913,7 +5913,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int switch ($Choice) { - {$DriveLetters -contains $Choice} + {$DriveLetters -notcontains $Skip} { Set-UserShellFolder -UserFolder Desktop -FolderPath "$($Choice)\Desktop" -RemoveDesktopINI } @@ -5941,7 +5941,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int switch ($Choice) { - {$DriveLetters -contains $Choice} + {$DriveLetters -notcontains $Skip} { Set-UserShellFolder -UserFolder Documents -FolderPath "$($Choice)\Documents" -RemoveDesktopINI } @@ -5969,7 +5969,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int switch ($Choice) { - {$DriveLetters -contains $Choice} + {$DriveLetters -notcontains $Skip} { Set-UserShellFolder -UserFolder Downloads -FolderPath "$($Choice)\Downloads" -RemoveDesktopINI } @@ -5997,7 +5997,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int switch ($Choice) { - {$DriveLetters -contains $Choice} + {$DriveLetters -notcontains $Skip} { Set-UserShellFolder -UserFolder Music -FolderPath "$($Choice)\Music" -RemoveDesktopINI } @@ -6025,7 +6025,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int switch ($Choice) { - {$DriveLetters -contains $Choice} + {$DriveLetters -notcontains $Skip} { Set-UserShellFolder -UserFolder Pictures -FolderPath "$($Choice)\Pictures" -RemoveDesktopINI } @@ -6053,7 +6053,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int switch ($Choice) { - {$DriveLetters -contains $Choice} + {$DriveLetters -notcontains $Skip} { Set-UserShellFolder -UserFolder Videos -FolderPath "$($Choice)\Videos" -RemoveDesktopINI } diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 index 09d210a16..4d028df37 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 @@ -6303,7 +6303,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int switch ($Choice) { - {$DriveLetters -contains $Choice} + {$DriveLetters -notcontains $Skip} { Set-UserShellFolder -UserFolder Desktop -FolderPath "$($Choice)\Desktop" -RemoveDesktopINI } @@ -6331,7 +6331,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int switch ($Choice) { - {$DriveLetters -contains $Choice} + {$DriveLetters -notcontains $Skip} { Set-UserShellFolder -UserFolder Documents -FolderPath "$($Choice)\Documents" -RemoveDesktopINI } @@ -6359,7 +6359,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int switch ($Choice) { - {$DriveLetters -contains $Choice} + {$DriveLetters -notcontains $Skip} { Set-UserShellFolder -UserFolder Downloads -FolderPath "$($Choice)\Downloads" -RemoveDesktopINI } @@ -6387,7 +6387,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int switch ($Choice) { - {$DriveLetters -contains $Choice} + {$DriveLetters -notcontains $Skip} { Set-UserShellFolder -UserFolder Music -FolderPath "$($Choice)\Music" -RemoveDesktopINI } @@ -6415,7 +6415,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int switch ($Choice) { - {$DriveLetters -contains $Choice} + {$DriveLetters -notcontains $Skip} { Set-UserShellFolder -UserFolder Pictures -FolderPath "$($Choice)\Pictures" -RemoveDesktopINI } @@ -6443,7 +6443,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int switch ($Choice) { - {$DriveLetters -contains $Choice} + {$DriveLetters -notcontains $Skip} { Set-UserShellFolder -UserFolder Videos -FolderPath "$($Choice)\Videos" -RemoveDesktopINI } diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1 index 1375f675e..0b47904f1 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1 @@ -7281,7 +7281,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int switch ($Choice) { - {$DriveLetters -contains $Choice} + {$DriveLetters -notcontains $Skip} { Set-UserShellFolder -UserFolder Desktop -FolderPath "$($Choice)\Desktop" -RemoveDesktopINI } @@ -7309,7 +7309,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int switch ($Choice) { - {$DriveLetters -contains $Choice} + {$DriveLetters -notcontains $Skip} { Set-UserShellFolder -UserFolder Documents -FolderPath "$($Choice)\Documents" -RemoveDesktopINI } @@ -7337,7 +7337,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int switch ($Choice) { - {$DriveLetters -contains $Choice} + {$DriveLetters -notcontains $Skip} { Set-UserShellFolder -UserFolder Downloads -FolderPath "$($Choice)\Downloads" -RemoveDesktopINI } @@ -7365,7 +7365,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int switch ($Choice) { - {$DriveLetters -contains $Choice} + {$DriveLetters -notcontains $Skip} { Set-UserShellFolder -UserFolder Music -FolderPath "$($Choice)\Music" -RemoveDesktopINI } @@ -7393,7 +7393,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int switch ($Choice) { - {$DriveLetters -contains $Choice} + {$DriveLetters -notcontains $Skip} { Set-UserShellFolder -UserFolder Pictures -FolderPath "$($Choice)\Pictures" -RemoveDesktopINI } @@ -7421,7 +7421,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int switch ($Choice) { - {$DriveLetters -contains $Choice} + {$DriveLetters -notcontains $Skip} { Set-UserShellFolder -UserFolder Videos -FolderPath "$($Choice)\Videos" -RemoveDesktopINI } diff --git a/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 index 7c3621614..81f7f9542 100644 --- a/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 @@ -7186,7 +7186,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int switch ($Choice) { - {$DriveLetters -contains $Choice} + {$DriveLetters -notcontains $Skip} { Set-UserShellFolder -UserFolder Desktop -FolderPath "$($Choice)\Desktop" -RemoveDesktopINI } @@ -7214,7 +7214,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int switch ($Choice) { - {$DriveLetters -contains $Choice} + {$DriveLetters -notcontains $Skip} { Set-UserShellFolder -UserFolder Documents -FolderPath "$($Choice)\Documents" -RemoveDesktopINI } @@ -7242,7 +7242,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int switch ($Choice) { - {$DriveLetters -contains $Choice} + {$DriveLetters -notcontains $Skip} { Set-UserShellFolder -UserFolder Downloads -FolderPath "$($Choice)\Downloads" -RemoveDesktopINI } @@ -7270,7 +7270,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int switch ($Choice) { - {$DriveLetters -contains $Choice} + {$DriveLetters -notcontains $Skip} { Set-UserShellFolder -UserFolder Music -FolderPath "$($Choice)\Music" -RemoveDesktopINI } @@ -7298,7 +7298,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int switch ($Choice) { - {$DriveLetters -contains $Choice} + {$DriveLetters -notcontains $Skip} { Set-UserShellFolder -UserFolder Pictures -FolderPath "$($Choice)\Pictures" -RemoveDesktopINI } @@ -7326,7 +7326,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int switch ($Choice) { - {$DriveLetters -contains $Choice} + {$DriveLetters -notcontains $Skip} { Set-UserShellFolder -UserFolder Videos -FolderPath "$($Choice)\Videos" -RemoveDesktopINI } diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 index 8cb86d84c..f4ae42f04 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 @@ -7188,7 +7188,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int switch ($Choice) { - {$DriveLetters -contains $Choice} + {$DriveLetters -notcontains $Skip} { Set-UserShellFolder -UserFolder Desktop -FolderPath "$($Choice)\Desktop" -RemoveDesktopINI } @@ -7216,7 +7216,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int switch ($Choice) { - {$DriveLetters -contains $Choice} + {$DriveLetters -notcontains $Skip} { Set-UserShellFolder -UserFolder Documents -FolderPath "$($Choice)\Documents" -RemoveDesktopINI } @@ -7244,7 +7244,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int switch ($Choice) { - {$DriveLetters -contains $Choice} + {$DriveLetters -notcontains $Skip} { Set-UserShellFolder -UserFolder Downloads -FolderPath "$($Choice)\Downloads" -RemoveDesktopINI } @@ -7272,7 +7272,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int switch ($Choice) { - {$DriveLetters -contains $Choice} + {$DriveLetters -notcontains $Skip} { Set-UserShellFolder -UserFolder Music -FolderPath "$($Choice)\Music" -RemoveDesktopINI } @@ -7300,7 +7300,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int switch ($Choice) { - {$DriveLetters -contains $Choice} + {$DriveLetters -notcontains $Skip} { Set-UserShellFolder -UserFolder Pictures -FolderPath "$($Choice)\Pictures" -RemoveDesktopINI } @@ -7328,7 +7328,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int switch ($Choice) { - {$DriveLetters -contains $Choice} + {$DriveLetters -notcontains $Skip} { Set-UserShellFolder -UserFolder Videos -FolderPath "$($Choice)\Videos" -RemoveDesktopINI }