Information générale
Catégorie:
Codage, syntaxe et commandes
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
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement