mirror of
https://github.com/massgravel/Microsoft-Activation-Scripts.git
synced 2025-05-09 13:52:02 -04:00
Fix crash issue when scripts are running under a path with special characters
This commit is contained in:
parent
372eb73a02
commit
172fd7b1c5
10 changed files with 14 additions and 16 deletions
|
@ -188,7 +188,7 @@ goto dk_done
|
|||
|
||||
::pstst $ExecutionContext.SessionState.LanguageMode :pstst
|
||||
|
||||
for /f "delims=" %%a in ('cmd /c "%psc% ""if ($PSVersionTable.PSEdition -ne 'Core') {$f=[io.file]::ReadAllText('!_batp!') -split ':pstst';iex ($f[1])}""" %nul6%') do (set tstresult=%%a)
|
||||
for /f "delims=" %%a in ('%psc% "if ($PSVersionTable.PSEdition -ne 'Core') {$f=[io.file]::ReadAllText('!_batp!') -split ':pstst';iex ($f[1])}" %nul6%') do (set tstresult=%%a)
|
||||
|
||||
if /i not "%tstresult%"=="FullLanguage" (
|
||||
%eline%
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue