Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Anything besides Run
Message
From
24/10/2001 14:12:10
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00568844
Message ID:
00572798
Views:
36
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
Map
View

Click here to load this message in the networking platform