REXX Tips & Tricks, Version 2.80


Inf-HTML [About][Toc][Index] 0.9b (c) 1995 Peter Childs


The ISWINDOW command


Use the return code of the DOS command ISWINDOW to distinguish between 
windowed and fullscreen DOS session (0 = fullscreen, 1 = window). 
Example: 

 
  @ECHO OFF
  REM *** sample DOS batch to distinguish
  REM     between window and fullscreen

  REM --- call the util program
  iswindow
  if errorlevel 1 goto IsWin

:IsFS
  SET sessionType=FS
  ECHO. Running in a DOS Fullscreen session
  GOTO NEXT

:IsWin
  SET sessionType=WIN
  ECHO. Running in a DOS window session
:NEXT




Inf-HTML End Run - Successful