Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
Small fixes
  • Loading branch information
farag2 committed Jul 12, 2023
1 parent 0951ab2 commit afcc554
Show file tree
Hide file tree
Showing 6 changed files with 78 additions and 78 deletions.
26 changes: 13 additions & 13 deletions src/Sophia_Script_for_Windows_10/Module/Sophia.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -7707,15 +7707,15 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int

do
{
$Choice = Show-Menu -Title "" -Menu @($Yes, $No) -Default 2
$Choice = Show-Menu -Title "" -Menu @($Yes, $Skip) -Default 2

switch ($Choice)
{
$Yes
{
Set-UserShellFolder -UserFolder Desktop -FolderPath "$env:USERPROFILE\Desktop" -RemoveDesktopINI
}
$No
$Skip
{
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
Expand All @@ -7736,15 +7736,15 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int

do
{
$Choice = Show-Menu -Title "" -Menu @($Yes, $No) -Default 2
$Choice = Show-Menu -Title "" -Menu @($Yes, $Skip) -Default 2

switch ($Choice)
{
$Yes
{
Set-UserShellFolder -UserFolder Documents -FolderPath "$env:USERPROFILE\Documents" -RemoveDesktopINI
}
$No
$Skip
{
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
Expand All @@ -7765,15 +7765,15 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int

do
{
$Choice = Show-Menu -Title "" -Menu @($Yes, $No) -Default 2
$Choice = Show-Menu -Title "" -Menu @($Yes, $Skip) -Default 2

switch ($Choice)
{
$Yes
{
Set-UserShellFolder -UserFolder Downloads -FolderPath "$env:USERPROFILE\Downloads" -RemoveDesktopINI
}
$No
$Skip
{
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
Expand All @@ -7794,15 +7794,15 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int

do
{
$Choice = Show-Menu -Title "" -Menu @($Yes, $No) -Default 2
$Choice = Show-Menu -Title "" -Menu @($Yes, $Skip) -Default 2

switch ($Choice)
{
$Yes
{
Set-UserShellFolder -UserFolder Music -FolderPath "$env:USERPROFILE\Music" -RemoveDesktopINI
}
$No
$Skip
{
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
Expand All @@ -7823,15 +7823,15 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int

do
{
$Choice = Show-Menu -Title $Title -Menu @($Yes, $No) -Default 2
$Choice = Show-Menu -Title $Title -Menu @($Yes, $Skip) -Default 2

switch ($Choice)
{
$Yes
{
Set-UserShellFolder -UserFolder Pictures -FolderPath "$env:USERPROFILE\Pictures" -RemoveDesktopINI
}
$No
$Skip
{
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
Expand All @@ -7846,21 +7846,21 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Verbose -Message ($Localization.UserDefaultFolder -f [WinAPI.GetStr]::GetString(21791)) -Verbose

# Extract the localized "Pictures" string from shell32.dll
$CurrentUserFolderLocation = Get-ItemPropertyValue -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "My Videos"
$CurrentUserFolderLocation = Get-ItemPropertyValue -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "My Video"
Write-Verbose -Message ($Localization.CurrentUserFolderLocation -f [WinAPI.GetStr]::GetString(21791), $CurrentUserFolderLocation) -Verbose
Write-Warning -Message $Localization.FilesWontBeMoved

do
{
$Choice = Show-Menu -Title "" -Menu @($Yes, $No) -Default 2
$Choice = Show-Menu -Title "" -Menu @($Yes, $Skip) -Default 2

switch ($Choice)
{
$Yes
{
Set-UserShellFolder -UserFolder Videos -FolderPath "$env:USERPROFILE\Videos" -RemoveDesktopINI
}
$No
$Skip
{
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
Expand Down
26 changes: 13 additions & 13 deletions src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -6346,15 +6346,15 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int

do
{
$Choice = Show-Menu -Title "" -Menu @($Yes, $No) -Default 2
$Choice = Show-Menu -Title "" -Menu @($Yes, $Skip) -Default 2

switch ($Choice)
{
$Yes
{
Set-UserShellFolder -UserFolder Desktop -FolderPath "$env:USERPROFILE\Desktop" -RemoveDesktopINI
}
$No
$Skip
{
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
Expand All @@ -6375,15 +6375,15 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int

do
{
$Choice = Show-Menu -Title "" -Menu @($Yes, $No) -Default 2
$Choice = Show-Menu -Title "" -Menu @($Yes, $Skip) -Default 2

switch ($Choice)
{
$Yes
{
Set-UserShellFolder -UserFolder Documents -FolderPath "$env:USERPROFILE\Documents" -RemoveDesktopINI
}
$No
$Skip
{
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
Expand All @@ -6404,15 +6404,15 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int

do
{
$Choice = Show-Menu -Title "" -Menu @($Yes, $No) -Default 2
$Choice = Show-Menu -Title "" -Menu @($Yes, $Skip) -Default 2

switch ($Choice)
{
$Yes
{
Set-UserShellFolder -UserFolder Downloads -FolderPath "$env:USERPROFILE\Downloads" -RemoveDesktopINI
}
$No
$Skip
{
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
Expand All @@ -6433,15 +6433,15 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int

do
{
$Choice = Show-Menu -Title "" -Menu @($Yes, $No) -Default 2
$Choice = Show-Menu -Title "" -Menu @($Yes, $Skip) -Default 2

switch ($Choice)
{
$Yes
{
Set-UserShellFolder -UserFolder Music -FolderPath "$env:USERPROFILE\Music" -RemoveDesktopINI
}
$No
$Skip
{
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
Expand All @@ -6462,15 +6462,15 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int

do
{
$Choice = Show-Menu -Title $Title -Menu @($Yes, $No) -Default 2
$Choice = Show-Menu -Title $Title -Menu @($Yes, $Skip) -Default 2

switch ($Choice)
{
$Yes
{
Set-UserShellFolder -UserFolder Pictures -FolderPath "$env:USERPROFILE\Pictures" -RemoveDesktopINI
}
$No
$Skip
{
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
Expand All @@ -6485,21 +6485,21 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Verbose -Message ($Localization.UserDefaultFolder -f [WinAPI.GetStr]::GetString(21791)) -Verbose

# Extract the localized "Pictures" string from shell32.dll
$CurrentUserFolderLocation = Get-ItemPropertyValue -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "My Videos"
$CurrentUserFolderLocation = Get-ItemPropertyValue -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "My Video"
Write-Verbose -Message ($Localization.CurrentUserFolderLocation -f [WinAPI.GetStr]::GetString(21791), $CurrentUserFolderLocation) -Verbose
Write-Warning -Message $Localization.FilesWontBeMoved

do
{
$Choice = Show-Menu -Title "" -Menu @($Yes, $No) -Default 2
$Choice = Show-Menu -Title "" -Menu @($Yes, $Skip) -Default 2

switch ($Choice)
{
$Yes
{
Set-UserShellFolder -UserFolder Videos -FolderPath "$env:USERPROFILE\Videos" -RemoveDesktopINI
}
$No
$Skip
{
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
Expand Down
26 changes: 13 additions & 13 deletions src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -6733,15 +6733,15 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int

do
{
$Choice = Show-Menu -Title "" -Menu @($Yes, $No) -Default 2
$Choice = Show-Menu -Title "" -Menu @($Yes, $Skip) -Default 2

switch ($Choice)
{
$Yes
{
Set-UserShellFolder -UserFolder Desktop -FolderPath "$env:USERPROFILE\Desktop" -RemoveDesktopINI
}
$No
$Skip
{
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
Expand All @@ -6762,15 +6762,15 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int

do
{
$Choice = Show-Menu -Title "" -Menu @($Yes, $No) -Default 2
$Choice = Show-Menu -Title "" -Menu @($Yes, $Skip) -Default 2

switch ($Choice)
{
$Yes
{
Set-UserShellFolder -UserFolder Documents -FolderPath "$env:USERPROFILE\Documents" -RemoveDesktopINI
}
$No
$Skip
{
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
Expand All @@ -6791,15 +6791,15 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int

do
{
$Choice = Show-Menu -Title "" -Menu @($Yes, $No) -Default 2
$Choice = Show-Menu -Title "" -Menu @($Yes, $Skip) -Default 2

switch ($Choice)
{
$Yes
{
Set-UserShellFolder -UserFolder Downloads -FolderPath "$env:USERPROFILE\Downloads" -RemoveDesktopINI
}
$No
$Skip
{
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
Expand All @@ -6820,15 +6820,15 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int

do
{
$Choice = Show-Menu -Title "" -Menu @($Yes, $No) -Default 2
$Choice = Show-Menu -Title "" -Menu @($Yes, $Skip) -Default 2

switch ($Choice)
{
$Yes
{
Set-UserShellFolder -UserFolder Music -FolderPath "$env:USERPROFILE\Music" -RemoveDesktopINI
}
$No
$Skip
{
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
Expand All @@ -6849,15 +6849,15 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int

do
{
$Choice = Show-Menu -Title $Title -Menu @($Yes, $No) -Default 2
$Choice = Show-Menu -Title $Title -Menu @($Yes, $Skip) -Default 2

switch ($Choice)
{
$Yes
{
Set-UserShellFolder -UserFolder Pictures -FolderPath "$env:USERPROFILE\Pictures" -RemoveDesktopINI
}
$No
$Skip
{
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
Expand All @@ -6872,21 +6872,21 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Write-Verbose -Message ($Localization.UserDefaultFolder -f [WinAPI.GetStr]::GetString(21791)) -Verbose

# Extract the localized "Pictures" string from shell32.dll
$CurrentUserFolderLocation = Get-ItemPropertyValue -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "My Videos"
$CurrentUserFolderLocation = Get-ItemPropertyValue -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "My Video"
Write-Verbose -Message ($Localization.CurrentUserFolderLocation -f [WinAPI.GetStr]::GetString(21791), $CurrentUserFolderLocation) -Verbose
Write-Warning -Message $Localization.FilesWontBeMoved

do
{
$Choice = Show-Menu -Title "" -Menu @($Yes, $No) -Default 2
$Choice = Show-Menu -Title "" -Menu @($Yes, $Skip) -Default 2

switch ($Choice)
{
$Yes
{
Set-UserShellFolder -UserFolder Videos -FolderPath "$env:USERPROFILE\Videos" -RemoveDesktopINI
}
$No
$Skip
{
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message $Localization.Skipped -Verbose
Expand Down
Loading

0 comments on commit afcc554

Please sign in to comment.