More Info MS KB85469@EHCO OFF
IF NOT "%WINDIR%"=="" GOTO EXIT
DOSPROG.EXE
:EXIT
Note one can also check whether one is executing in Windows NT or Windows 9x. This is done by checking for the enviroment variable SYSTEMROOT, which is created by the Windows NT enviroment:
More Info MS KB190899@EHCO OFF
IF NOT "%SYSTEMROOT%"=="" GOTO WINNT
IF NOT "%WINDIR%"=="" GOTO WIN9X
GOTO DOS
Leave a Reply