home *** CD-ROM | disk | FTP | other *** search
/ The Pier Shareware 6 / The_Pier_Shareware_Number_6_(The_Pier_Exchange)_(1995).iso / 035 / cenvi29.zip / EDITCMD.CMD < prev    next >
OS/2 REXX Batch file  |  1994-03-08  |  713b  |  19 lines

  1. EXTPROC CEnvi
  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.