|
|
|
@ -172,9 +172,9 @@ goto dk_done
|
|
|
|
|
|
|
|
|
|
:: Check PowerShell
|
|
|
|
|
|
|
|
|
|
REM :PowerShellTest: $ExecutionContext.SessionState.LanguageMode :PowerShellTest:
|
|
|
|
|
REM :PStest: $ExecutionContext.SessionState.LanguageMode :PStest:
|
|
|
|
|
|
|
|
|
|
cmd /c "%psc% "$f=[io.file]::ReadAllText('!_batp!') -split ':PowerShellTest:\s*';iex ($f[1])"" | find /i "FullLanguage" %nul1% || (
|
|
|
|
|
cmd /c "%psc% "$f=[io.file]::ReadAllText('!_batp!') -split ':PStest:\s*';iex ($f[1])"" | find /i "FullLanguage" %nul1% || (
|
|
|
|
|
%eline%
|
|
|
|
|
cmd /c "%psc% "$ExecutionContext.SessionState.LanguageMode""
|
|
|
|
|
echo:
|
|
|
|
|