rejetto forum

Software => HFS ~ HTTP File Server => Bug reports => Topic started by: MarkV on October 31, 2006, 03:17:08 PM

Title: Update procedure and non-NT OS
Post by: MarkV on October 31, 2006, 03:17:08 PM
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
Title: Re: Update procedure and non-NT OS
Post by: rejetto on October 31, 2006, 05:00:45 PM
i can detect NT from inside HFS itself.
i will just generate the right batch command.
thank you for suggesting.