378______________________________________________ <

  DOS.       DOS, .
      DOS,    , -
  . , ,  .   
, ,    arj.bat :

@echo off

arj.exe e doc %1

exit

       exit  -
     DOS.      
   ,  :

if(spawnlp(P WAIT,"arj.bat","arj.bat","al.txt", NULL))

    arj.bat    -
,       .
          
    ,    
DOS.       ,   -
 .

      spawnlp.   -
  ,     
   .    -
          
.      .

    POverlay.    , -
, , OMenage.      -
 .     ,      
       .
    :

#include <vcl.h>

ttpragma hdrstop

ftinclude <process.h>

WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR IpCmdLine, int)

(

spawnlp(P_WAIT,IpCmdLine,IpCmdLine, NULL);

spawnlp(P_OVERLAY,"POverlay.exe","POverlay.exe", NULL) ;

return 0;

)

   spawnlp      
,       IpCmdLine. 
 spawnlp       -
verlay.exe.

,      POverlay  
     Editl.    
  :

if(spawnlp(P_OVERLAY,"OMenage.exe","OMenage.exe",Editl->Text,NULL))
ShowMessage(" " + Editl->Text + "  ;"+"
  OMenage.exe");

     POverlay    
    ( 10 )  OMenage.exe,   
    .  OMenage.exe  
   ,         
    POverlay.  ,   -