General information
Category:
Coding, syntax & commands
George,
I have came up with this code to at least wait for Distiller to complete task. But for some reason the temporary folder where the files are becomes locked by my app and can't be deleted until app closes. The files in the folder can be deleted with no problems. When I try to delete the folder I get a sharing violation message.
Run /N acrodist.exe &sdewse2
Set Default To "\\gv-engineering\drawing\wgen\pre_pdf\pdf_hold\" + AllT(pdfcue.dwgnorev)
Do While .T.
hgy = FOpen(AllT(pdfcue.dwgnorev) + ".pdf")
? hgy
If hgy <> -1 Then
? hgy
FClose(hgy)
pdfflag = .T.
Exit
EndIf
Loop
pdfflag = .F.
EndDo
If pdfflag = .T.
MessageBox("Finished")
EndIf
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only