From: juul@larsen.dk   
      
   Raoul Watson skrev:   
   > "Per Juul Larsen" wrote in message   
   > news:27914$488cc86a$57486c0a$31719@news.comxnet.dk...   
   >> Hi   
   >>   
   >> My VB aplication copies a lot of images from a removable media which is   
   >> the first process (function).   
   >> Is there a way to allow the copy process to run in the background, in   
   >> order to let the application continue with other activities. ? (sending   
   >> SQLquerries etc.)   
   >>   
   >> Right now I must wait untill all the files have been found and copied to   
   >> my HD. A little pity.   
   >>   
   >> The copy process goes like this :   
   >>   
   >> Function CopyFile(InpFile As String, OutpFile As String)   
   >> On Error Resume Next   
   >> Dim ase As String   
   >> Open InpFile For Binary As #1   
   >> ase = String(LOF(1), vbNullChar)   
   >> Get #1, , ase   
   >> Close #1   
   >> Open OutpFile For Binary Access Write As #2   
   >> Put #2, , ase   
   >> Close #2   
   >> End Function   
   >   
   >   
   > With your current design, no.   
   >   
   > However, have you considered copying the file through   
   > SHFileOperation? This way, the program continues while   
   > explorer takes over.   
   >   
   >   
   Thank you for your reply   
   I will try to look at your proposed solution.   
   kind regards pjl   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|