zzfive03
Programmer
- Jun 11, 2001
- 267
I am using VB 6.0 I have a loop that creates PDF files.
After the file is created with Distiler, I move it to a location on the hard drive. The problem I have is when I use FSO, I check with FSO.FileExists() But just because the file exists, does not mean it is finished being built. I usualy get a "permission denied" error.
Is there an API call I can do before I preform work on the file that can tell if the file is in use?
Example:
BuildPDF("C:\temp.pdf" ' (existing func)
WaitForFileToBecomeNotInUse("C:\temp.pdf" ' (ideal func)
' - - continue with my process
Any help on this would be great.
THank you, Mark
After the file is created with Distiler, I move it to a location on the hard drive. The problem I have is when I use FSO, I check with FSO.FileExists() But just because the file exists, does not mean it is finished being built. I usualy get a "permission denied" error.
Is there an API call I can do before I preform work on the file that can tell if the file is in use?
Example:
BuildPDF("C:\temp.pdf" ' (existing func)
WaitForFileToBecomeNotInUse("C:\temp.pdf" ' (ideal func)
' - - continue with my process
Any help on this would be great.
THank you, Mark