878_____________________________________________ 14

Memol->Lines->LoadFromFile("al.txt") ;

DeleteFile("al.txt");

}

  arj,    doc.arj  al.txt. -
 ,   arj  ,   -
     Memol      .

    ,    -
,    .      ,  -
    :

if(spawnip(P_WAIT,"arj","arj","e","doc.arj","al.txt", NULL))

,   ,    
 ...,        -
.         spawn...  -
,   P_WAIT,        
    ,    -
. ,       P_NOWAIT,   -
  cwait  wait:

int ID = spawnlp(P NOWAIT,"arj","arj","e doc.arj al.txt",NULL);

if(ID == -1)

ShowMessage(" arj  ");

else
{

if(wait(NULL) != ID)

ShowMessage(" ") ;

else
(

Memol->Clear();

Memol->Lines->LoadFromFile("al.txt") ;

DeleteFile("al.txt") ;

)
}

    spawnip    _ NOWAIT,  -
    .    -
 wait,   .     , -
    ,    -
     .

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

@echo off
arj.exe e doc %1
exit

       exit  -
     DOS.      
   ,  :

if(spawnip(P_WAIT,"arj.bat","arj.bat","al.txt", NULL))

    arj.bat    -
,       .