home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
cenvi23.zip
/
ISWIN.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1995-05-31
|
735b
|
26 lines
EXTPROC CEnvi2
//***********************************************************
//*** IsWin.cmd - CEnvi2 program to check if window title ***
//*** ver.1 exists. Return errorlevel 0 if running ***
//*** else 1. Partial search on title. ***
//*** Example: IsWin PULSE ***
//***********************************************************
#include "WinTools.lib"
main(argc,argv)
{
if ( argc != 2 ) {
printf("Must supply window title.\n");
return 1;
}
WindowTitle = argv[1];
if ( IsWindow(WindowTitle) ) {
printf("%s is running.\n",WindowTitle);
return 0;
}
printf("%s is NOT running.\n",WindowTitle);
return 1;
}