rejetto forum
Software => HFS ~ HTTP File Server => Bug reports => Topic started 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:
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
IF "%OS%"=="Windows_NT" START "" "<target path>\hfs.exe"
IF NOT "%OS%"=="Windows_NT" START.EXE <target path>\hfs.exe"
MarkV
-
i can detect NT from inside HFS itself.
i will just generate the right batch command.
thank you for suggesting.