1784413672
This commit is contained in:
@@ -58,4 +58,4 @@ Start-Sleep -Seconds $WaitSeconds
|
||||
|
||||
# x Force reboot with no warning
|
||||
# Disabled -Force to let apps close gracefully
|
||||
Restart-Computer # -Force
|
||||
Stop-Computer # -Force
|
||||
@@ -27,5 +27,16 @@ if([string]::IsNullOrEmpty($args[2])) {
|
||||
$Buttons = $args[2]
|
||||
}
|
||||
|
||||
Add-Type -AssemblyName PresentationFramework
|
||||
[System.Windows.MessageBox]::Show($Message, $Message, $Buttons, $Type);
|
||||
# doin inide start-job method so alert box doesnt block
|
||||
Start-Job -ScriptBlock {
|
||||
# get back my fuckin vars inside this script block
|
||||
$Message = $using:Message
|
||||
$Buttons = $using:Buttons
|
||||
$Type = $using:Type
|
||||
|
||||
# Add the PresentationFramework
|
||||
Add-Type -AssemblyName PresentationFramework
|
||||
|
||||
# Send the alert
|
||||
[System.Windows.MessageBox]::Show($Message, $Message, $Buttons, $Type)
|
||||
};
|
||||
@@ -1,6 +1,11 @@
|
||||
param (
|
||||
[Parameter(Mandatory=$true)]
|
||||
[string]$infile
|
||||
)
|
||||
# param (
|
||||
# [Parameter(Mandatory=$true)]
|
||||
# [string]$infile
|
||||
# )
|
||||
|
||||
if(!$args[0]) {
|
||||
Write-Host "Usage: sha256sum <file path>"
|
||||
exit 1
|
||||
}
|
||||
|
||||
Invoke-Expression "$PSScriptRoot\winhash.ps1 $infile SHA256"
|
||||
Reference in New Issue
Block a user