corpnewt / SSDTTime

SSDT/DSDT hotpatch attempts.
MIT License
1.06k stars 181 forks source link

SSDTTime.bat not running #28

Open khyjb1995 opened 4 years ago

khyjb1995 commented 4 years ago

< was unexpected at this time.

corpnewt commented 4 years ago

Using the latest commit? I've been working on this issue the past copule days - and the most recent changes were pushed a few hours ago.

-CorpNewt

greengem commented 4 years ago

Same issue here on Windows 10 2004 (Fresh Install).

When double-clicking SSDTTime.bat it closes before getting to terminal. Running from command prompt produces same message described in post 1.

It was working around 1-2 weeks ago and now after a fresh install I can't use it.

plastica99 commented 4 years ago

The same issue here. It's definitely the latest commit.

by removing line 112 call :undouble "%~1" "%~2" I can successfully launch the script but I couldn't know if the line is mandatory.

:undouble <string_name> <character>
    call :undouble_recur "%~1" "%~2"
goto :EOF

:undouble_recur <string_name> <character>
REM Helper function to strip doubles of a single character out of a string recursively
set "string_name=%~1"
set "character=%~2"
set "check=!%string_name%:%character%%character%=%character%!"
if not "!check!" == "!%~1!" (
    set "!string_name!=!check!"
    call :undouble_recur "%~1" "%~2"
)
goto :EOF

It seems like it's working, but I'm pretty new to batch, so I need someone to verify if this will work and tell the cause of the issue.

ashun-kaede commented 4 years ago

It works thx.

VicMinhoto commented 4 years ago

It works thx.

Could you post the file ".bat" still have the problem here