VB File Errors between tasks in Win2000
Posted on 2006-06-21
We are just converting application workstations to Windows 2000 and there seems to be a 'slowness' letting go of files in Win2000 that was not there in Win95.
VB Program does a shell to another program (3rd party product) and must wait until the other process completes: it does this by looking at the files created. Here is the code where it failed with an error #53 - File Not Found
Do While Dir(mstrSwBundleFileName) = ""
'-- Now wait until its size is non-zero
Do While FileLen(mstrSwBundleFileName) = 0
In the above, only the file length command could get an 'error 53 file not found'
WHY is it that a DIR command returns the file name, then the FILELEN says file not found???