summaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
authorWindowsAddict2025-02-02 14:45:26 +0000
committerWindowsAddict2025-02-02 14:45:26 +0000
commitfde9ff93b332bf0ba2358e660e6abd64fb1edfde (patch)
treeaf46dc018796da0c169afee07fd1c763d504ae08 /index.html
parente24fb6d1392087f44d11841eb083da38111ac72b (diff)
downloadmassgravel.github.io-fde9ff93b332bf0ba2358e660e6abd64fb1edfde.zip
Check if cmd.exe is working
Diffstat (limited to 'index.html')
-rw-r--r--index.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/index.html b/index.html
index 283c1f1..4f71b54 100644
--- a/index.html
+++ b/index.html
@@ -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