home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / PMBOOT.ZIP / PS_SHELL.C < prev    next >
C/C++ Source or Header  |  1991-06-26  |  354b  |  17 lines

  1. #define INCL_NOCOMMON
  2. #define INCL_DOSMISC
  3. #define INCL_DOSPROCESS
  4. #include <os2.h>
  5. #include <stdio.h>
  6.  
  7. int _cdecl main (void) {
  8.    char        comspec[64], *pcomspec=comspec;
  9.    RESULTCODES rc;
  10.  
  11.    DosScanEnv("COMSPEC",&pcomspec);
  12.    for (;;) {
  13.       DosExecPgm(NULL,0,EXEC_SYNC,NULL,NULL,&rc,pcomspec);
  14.    } /* endfor */
  15.    return 0;
  16. }
  17.