summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWindowsAddict2025-02-02 14:45:17 +0000
committerWindowsAddict2025-02-02 14:45:17 +0000
commit5586db326bce391b7727069269c9320846e5dea4 (patch)
treefa6642f63206d967375aadcaacfb538ee64a2b11
parent8c960a8ea75d27805d125ed4b067e625cf2071c3 (diff)
downloadmassgrave.dev-5586db326bce391b7727069269c9320846e5dea4.zip
Check if cmd.exe is working
-rw-r--r--static/get.ps14
1 files changed, 4 insertions, 0 deletions
diff --git a/static/get.ps1 b/static/get.ps1
index ad09efd..3f3f07a 100644
--- a/static/get.ps1
+++ b/static/get.ps1
@@ -77,6 +77,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