home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / startd.zip / NOTEPAD.CMD < prev    next >
OS/2 REXX Batch file  |  1995-06-26  |  430b  |  22 lines

  1. /* start notepad.exe in a common seamless vdm */
  2. parse source . . szRexxFile .
  3.  
  4. select
  5.   when 'CMD' = address() then do
  6.     'pmsd' szRexxFile
  7.     if rc > 0 then do
  8.       say 'Problem finding/running pmsd.exe'
  9.       return 2
  10.     end
  11.   end
  12.   when 'STARTDOS' = address() then do
  13.     rc = startseamless( 18, "notepad.exe" )
  14.   end
  15.   otherwise do
  16.     say 'Unexpected environment.'
  17.     return 4
  18.   end
  19. end
  20.  
  21. return 0
  22.