|
@ -7707,7 +7707,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int |
|
|
|
|
|
|
|
|
do |
|
|
do |
|
|
{ |
|
|
{ |
|
|
$Choice = Show-Menu -Title "" -Menu @($Yes, $No) -Default 2 |
|
|
$Choice = Show-Menu -Title "" -Menu @($Yes, $Skip) -Default 2 |
|
|
|
|
|
|
|
|
switch ($Choice) |
|
|
switch ($Choice) |
|
|
{ |
|
|
{ |
|
@ -7715,7 +7715,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int |
|
|
{ |
|
|
{ |
|
|
Set-UserShellFolder -UserFolder Desktop -FolderPath "$env:USERPROFILE\Desktop" -RemoveDesktopINI |
|
|
Set-UserShellFolder -UserFolder Desktop -FolderPath "$env:USERPROFILE\Desktop" -RemoveDesktopINI |
|
|
} |
|
|
} |
|
|
$No |
|
|
$Skip |
|
|
{ |
|
|
{ |
|
|
Write-Information -MessageData "" -InformationAction Continue |
|
|
Write-Information -MessageData "" -InformationAction Continue |
|
|
Write-Verbose -Message $Localization.Skipped -Verbose |
|
|
Write-Verbose -Message $Localization.Skipped -Verbose |
|
@ -7736,7 +7736,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int |
|
|
|
|
|
|
|
|
do |
|
|
do |
|
|
{ |
|
|
{ |
|
|
$Choice = Show-Menu -Title "" -Menu @($Yes, $No) -Default 2 |
|
|
$Choice = Show-Menu -Title "" -Menu @($Yes, $Skip) -Default 2 |
|
|
|
|
|
|
|
|
switch ($Choice) |
|
|
switch ($Choice) |
|
|
{ |
|
|
{ |
|
@ -7744,7 +7744,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int |
|
|
{ |
|
|
{ |
|
|
Set-UserShellFolder -UserFolder Documents -FolderPath "$env:USERPROFILE\Documents" -RemoveDesktopINI |
|
|
Set-UserShellFolder -UserFolder Documents -FolderPath "$env:USERPROFILE\Documents" -RemoveDesktopINI |
|
|
} |
|
|
} |
|
|
$No |
|
|
$Skip |
|
|
{ |
|
|
{ |
|
|
Write-Information -MessageData "" -InformationAction Continue |
|
|
Write-Information -MessageData "" -InformationAction Continue |
|
|
Write-Verbose -Message $Localization.Skipped -Verbose |
|
|
Write-Verbose -Message $Localization.Skipped -Verbose |
|
@ -7765,7 +7765,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int |
|
|
|
|
|
|
|
|
do |
|
|
do |
|
|
{ |
|
|
{ |
|
|
$Choice = Show-Menu -Title "" -Menu @($Yes, $No) -Default 2 |
|
|
$Choice = Show-Menu -Title "" -Menu @($Yes, $Skip) -Default 2 |
|
|
|
|
|
|
|
|
switch ($Choice) |
|
|
switch ($Choice) |
|
|
{ |
|
|
{ |
|
@ -7773,7 +7773,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int |
|
|
{ |
|
|
{ |
|
|
Set-UserShellFolder -UserFolder Downloads -FolderPath "$env:USERPROFILE\Downloads" -RemoveDesktopINI |
|
|
Set-UserShellFolder -UserFolder Downloads -FolderPath "$env:USERPROFILE\Downloads" -RemoveDesktopINI |
|
|
} |
|
|
} |
|
|
$No |
|
|
$Skip |
|
|
{ |
|
|
{ |
|
|
Write-Information -MessageData "" -InformationAction Continue |
|
|
Write-Information -MessageData "" -InformationAction Continue |
|
|
Write-Verbose -Message $Localization.Skipped -Verbose |
|
|
Write-Verbose -Message $Localization.Skipped -Verbose |
|
@ -7794,7 +7794,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int |
|
|
|
|
|
|
|
|
do |
|
|
do |
|
|
{ |
|
|
{ |
|
|
$Choice = Show-Menu -Title "" -Menu @($Yes, $No) -Default 2 |
|
|
$Choice = Show-Menu -Title "" -Menu @($Yes, $Skip) -Default 2 |
|
|
|
|
|
|
|
|
switch ($Choice) |
|
|
switch ($Choice) |
|
|
{ |
|
|
{ |
|
@ -7802,7 +7802,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int |
|
|
{ |
|
|
{ |
|
|
Set-UserShellFolder -UserFolder Music -FolderPath "$env:USERPROFILE\Music" -RemoveDesktopINI |
|
|
Set-UserShellFolder -UserFolder Music -FolderPath "$env:USERPROFILE\Music" -RemoveDesktopINI |
|
|
} |
|
|
} |
|
|
$No |
|
|
$Skip |
|
|
{ |
|
|
{ |
|
|
Write-Information -MessageData "" -InformationAction Continue |
|
|
Write-Information -MessageData "" -InformationAction Continue |
|
|
Write-Verbose -Message $Localization.Skipped -Verbose |
|
|
Write-Verbose -Message $Localization.Skipped -Verbose |
|
@ -7823,7 +7823,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int |
|
|
|
|
|
|
|
|
do |
|
|
do |
|
|
{ |
|
|
{ |
|
|
$Choice = Show-Menu -Title $Title -Menu @($Yes, $No) -Default 2 |
|
|
$Choice = Show-Menu -Title $Title -Menu @($Yes, $Skip) -Default 2 |
|
|
|
|
|
|
|
|
switch ($Choice) |
|
|
switch ($Choice) |
|
|
{ |
|
|
{ |
|
@ -7831,7 +7831,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int |
|
|
{ |
|
|
{ |
|
|
Set-UserShellFolder -UserFolder Pictures -FolderPath "$env:USERPROFILE\Pictures" -RemoveDesktopINI |
|
|
Set-UserShellFolder -UserFolder Pictures -FolderPath "$env:USERPROFILE\Pictures" -RemoveDesktopINI |
|
|
} |
|
|
} |
|
|
$No |
|
|
$Skip |
|
|
{ |
|
|
{ |
|
|
Write-Information -MessageData "" -InformationAction Continue |
|
|
Write-Information -MessageData "" -InformationAction Continue |
|
|
Write-Verbose -Message $Localization.Skipped -Verbose |
|
|
Write-Verbose -Message $Localization.Skipped -Verbose |
|
@ -7846,13 +7846,13 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int |
|
|
Write-Verbose -Message ($Localization.UserDefaultFolder -f [WinAPI.GetStr]::GetString(21791)) -Verbose |
|
|
Write-Verbose -Message ($Localization.UserDefaultFolder -f [WinAPI.GetStr]::GetString(21791)) -Verbose |
|
|
|
|
|
|
|
|
# Extract the localized "Pictures" string from shell32.dll |
|
|
# 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-Verbose -Message ($Localization.CurrentUserFolderLocation -f [WinAPI.GetStr]::GetString(21791), $CurrentUserFolderLocation) -Verbose |
|
|
Write-Warning -Message $Localization.FilesWontBeMoved |
|
|
Write-Warning -Message $Localization.FilesWontBeMoved |
|
|
|
|
|
|
|
|
do |
|
|
do |
|
|
{ |
|
|
{ |
|
|
$Choice = Show-Menu -Title "" -Menu @($Yes, $No) -Default 2 |
|
|
$Choice = Show-Menu -Title "" -Menu @($Yes, $Skip) -Default 2 |
|
|
|
|
|
|
|
|
switch ($Choice) |
|
|
switch ($Choice) |
|
|
{ |
|
|
{ |
|
@ -7860,7 +7860,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int |
|
|
{ |
|
|
{ |
|
|
Set-UserShellFolder -UserFolder Videos -FolderPath "$env:USERPROFILE\Videos" -RemoveDesktopINI |
|
|
Set-UserShellFolder -UserFolder Videos -FolderPath "$env:USERPROFILE\Videos" -RemoveDesktopINI |
|
|
} |
|
|
} |
|
|
$No |
|
|
$Skip |
|
|
{ |
|
|
{ |
|
|
Write-Information -MessageData "" -InformationAction Continue |
|
|
Write-Information -MessageData "" -InformationAction Continue |
|
|
Write-Verbose -Message $Localization.Skipped -Verbose |
|
|
Write-Verbose -Message $Localization.Skipped -Verbose |
|
|