|
|
@ -375,8 +375,8 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); |
|
|
|
$Parameters = @{ |
|
|
|
Uri = "https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/update_v6.txt" |
|
|
|
UseBasicParsing = $true |
|
|
|
Verbose = $true |
|
|
|
} |
|
|
|
Verbose = $true |
|
|
|
} |
|
|
|
$update_v6 = (Invoke-WebRequest @Parameters).Content |
|
|
|
|
|
|
|
$IPArray += $extra, $extra_v6, $spy, $spy_v6, $update, $update_v6 |
|
|
@ -4871,7 +4871,7 @@ public static bool MarkFileDelete (string sourcefile) |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
Start-Process -FilePath explorer -ArgumentList $env:OneDrive |
|
|
|
Start-Process -FilePath "$env:SystemRoot\explorer.exe" -ArgumentList $env:OneDrive |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@ -4899,7 +4899,7 @@ public static bool MarkFileDelete (string sourcefile) |
|
|
|
$FileSyncShell64dlls = Get-ChildItem -Path "$OneDriveFolder\*\FileSyncShell64.dll" -Force |
|
|
|
foreach ($FileSyncShell64dll in $FileSyncShell64dlls.FullName) |
|
|
|
{ |
|
|
|
Start-Process -FilePath regsvr32.exe -ArgumentList "/u /s $FileSyncShell64dll" -Wait |
|
|
|
Start-Process -FilePath "$env:SystemRoot\System32\regsvr32.exe" -ArgumentList "/u /s $FileSyncShell64dll" -Wait |
|
|
|
Remove-Item -Path $FileSyncShell64dll -Force -ErrorAction Ignore |
|
|
|
|
|
|
|
if (Test-Path -Path $FileSyncShell64dll) |
|
|
@ -4915,7 +4915,7 @@ public static bool MarkFileDelete (string sourcefile) |
|
|
|
} |
|
|
|
|
|
|
|
# We need to wait for a few seconds to let explore launch unless it will fail to do so |
|
|
|
Start-Process -FilePath explorer |
|
|
|
Start-Process -FilePath "$env:SystemRoot\explorer.exe" |
|
|
|
Start-Sleep -Seconds 3 |
|
|
|
|
|
|
|
$Path = @( |
|
|
@ -14153,7 +14153,7 @@ public static void PostMessage() |
|
|
|
{ |
|
|
|
if (Test-Path -Path $Script:OpenedFolder) |
|
|
|
{ |
|
|
|
Start-Process -FilePath explorer -ArgumentList $Script:OpenedFolder |
|
|
|
Start-Process -FilePath "$env:SystemRoot\explorer.exe" -ArgumentList $Script:OpenedFolder |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|