home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cenvi23.zip / EDITCMD.CMD < prev    next >
OS/2 REXX Batch file  |  1994-10-03  |  714b  |  19 lines

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