rejetto forum

Update procedure and non-NT OS

MarkV · 2 · 1885

0 Members and 1 Guest are viewing this topic.

Offline MarkV

  • Tireless poster
  • ****
    • Posts: 763
    • View Profile
When using the semi-auto update procedure, the new hfs.exe is downloaded, then hfs.update.bat is started. The file includes the following line:
Code: [Select]
START "" "<target path>\hfs.exe"This command does only work with NT based OS. Using Win9x/ME, HFS fails to restart itself. Possible solution would be to test for the environment variable OS; all NT based operating systems have set OS=Windows_NT, non NT do not have this variable set.

Maybe replacing it with
Code: [Select]
IF "%OS%"=="Windows_NT" START "" "<target path>\hfs.exe"
IF NOT "%OS%"=="Windows_NT" START.EXE <target path>\hfs.exe"

MarkV
http://worldipv6launch.org - The world is different now.


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13304
    • View Profile
i can detect NT from inside HFS itself.
i will just generate the right batch command.
thank you for suggesting.