380________________________________________________ i

 CmdLine         
,     ,  ,  
 .      ,  Windows   -
      :                   |

1. ,    ,                           t

2.  ,                                                    j

3.   Windows,   GetSystemDirectory.

4.  Windows,   GetWindowsDirectory.1

5.      PATH.

 CmdShow      -
 Windows.     .   14  
14.14.3.2.     SW_RESTORE,   
      .  
      ,     
      .  -
  Windows,   PIF  ..     -
.

      WinExec -
 ,  31.      :

|                    

                            0           

ERROR_BAD_FORMAT      11      . (, 

__________________________ Win32 .)_______________

ERROR_FILE_NOT_FOUND 2        
ERROR_PATH_NOT_FOUND 3____   ______

  WinExec      -
 Windows.        Win32,   Win32
   CreateProcess (   . -
  C++Builder ).

   WinExec.



WinExec("file.",SW_RESTORE) ;

  file.. 

WinExec("",SW_RESTORE) ;

 Norton Commander. 

WinExec("COMMAND.",SW_RESTORE) ;

   MS-DOS.


int i = WinExec(Editl->Text.c_str(),SW_RESTORE);

if (i < 32)
ShowMessage("  "+ IntToStr(i) ) ;

   ,     
  Editl.      
 (char *),      AnsiString,     -
   .c_str().