D
Derek Hart
I have the following code in Access. I use it to delete some files, but I
need the timer because the system may still have a hold on the files. This
works nicely to clean up a directory. What is similar code for VB.Net?
PauseTime = 5
start = Timer
Do While Timer < start + PauseTime
On Error Resume Next
RmDir MergeFolder
If Dir(MergeFolder, vbDirectory) = "" Then Exit Do
Loop
Derek
need the timer because the system may still have a hold on the files. This
works nicely to clean up a directory. What is similar code for VB.Net?
PauseTime = 5
start = Timer
Do While Timer < start + PauseTime
On Error Resume Next
RmDir MergeFolder
If Dir(MergeFolder, vbDirectory) = "" Then Exit Do
Loop
Derek