I am unzipping a file with pkunzip and do not to go further till the file exists (unzipped)
This is the code
My problem is that even though the file exists it was not released by Pkunzip and I would like to loop around until the file is released.
How can I verify that the file is not locked so that I can copy it?
This is the code
Code:
ChDrive "F"
ChDir "F:\Org\Import\Temp\"
NW = Shell("F:\Org\pkzip\pkunzip.exe -o F:\Org\Import\Temp\Tmp.zip", vbMinimizedFocus)
Do While Dir("F:\Org\Import\Temp\*.mdb") = ""
Loop
FileCopy "F:\Org\Import\Temp\" & FilNm & ".mdb", "F:\Org\Import\Old\" & FilNm & ".mdb"
My problem is that even though the file exists it was not released by Pkunzip and I would like to loop around until the file is released.
How can I verify that the file is not locked so that I can copy it?