diff options
| author | WindowsAddict | 2025-02-02 14:45:26 +0000 |
|---|---|---|
| committer | WindowsAddict | 2025-02-02 14:45:26 +0000 |
| commit | fde9ff93b332bf0ba2358e660e6abd64fb1edfde (patch) | |
| tree | af46dc018796da0c169afee07fd1c763d504ae08 | |
| parent | e24fb6d1392087f44d11841eb083da38111ac72b (diff) | |
| download | massgravel.github.io-fde9ff93b332bf0ba2358e660e6abd64fb1edfde.zip | |
Check if cmd.exe is working
| -rw-r--r-- | index.html | 4 |
1 files changed, 4 insertions, 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 |
