home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1994 February / psl_9403.zip / psl_9403 / DOS / UT_SYSTM / CENVI2.ZIP / EDITCMD.CMD < prev    next >
OS/2 REXX Batch file  |  1993-10-11  |  522b  |  17 lines

  1. EXTPROC CEnvi
  2. // EditCmd.cmd - Example Cmm source file that uses the simple
  3. //               FileDlg.lib interface into the WinFileDlg()
  4. //               function in PM.
  5. //
  6. // This program lets user selecte a source file (default to .cmm)
  7. // and then start notepad with that file.
  8.  
  9. #include <FileDlg.lib>
  10.  
  11. FileName = FileDialog("*.cmd","Select a file to edit.",
  12.                       FDS_OPEN_DIALOG | FDS_CENTER,
  13.                       "Edit File");
  14. if ( FileName )
  15.    system("start E.EXE %s",FileName);
  16.  
  17.