I've written this little prog that will check for a file.
If a file is found then will check the file size then pause, check the file size again and compaire the two. If the file size is same then process file else wait .

If anyone can help, would be great.


VB Code:
  1. Dim FSO As New FileSystemObject 'set fso as new file system object
  2.     Dim Filen As File               'This is a file
  3.     Dim FileLena, FileLenb As Long
  4. If File1.ListCount = 0 Then
  5.     FileName = File1.FileName
  6.    
  7. Do Until FileLena = FileLenb
  8.     Set Filen = FSO.GetFile(FileName)  'Set fullstring as full filename and pick the file
  9.     FileLena = Filen.Size           'Get file size
  10.     Text1.Text = Filen.Size         'display the filesize in text box 1
  11.     Wait 1                          'wait 1 seconds
  12.     FileLenb = Filen.Size           'Get file size
  13.     Text2.Text = Filen.Size         'display the filesize in text box 2
  14.     Wait 1
  15. Loop