mirror of
https://github.com/massgravel/get.activated.win.git
synced 2025-12-14 15:48:22 +01:00
Check if cmd.exe is working
This commit is contained in:
parent
e24fb6d139
commit
fde9ff93b3
1 changed files with 4 additions and 0 deletions
|
|
@ -72,6 +72,10 @@ Set-Content -Path $FilePath -Value "@::: $rand `r`n$response"
|
|||
CheckFile $FilePath
|
||||
|
||||
$env:ComSpec = "$env:SystemRoot\system32\cmd.exe"
|
||||
$chkcmd = & $env:ComSpec /c "echo CMD is working"
|
||||
if ($chkcmd -notcontains "CMD is working") {
|
||||
Write-Warning "cmd.exe is not working.`nReport this issue at https://massgrave.dev/troubleshoot"
|
||||
}
|
||||
Start-Process -FilePath $env:ComSpec -ArgumentList "/c """"$FilePath"" $args""" -Wait
|
||||
CheckFile $FilePath
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue