Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detect completion of 'run' command
Message
 
 
To
28/09/2000 11:35:30
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00422089
Message ID:
00422091
Views:
24
>Does anyone know of a fool-proof wasy to detect the completion of a run command in VFP.
>Example:
>I'm using a run command to (command-line) print a PDF to postscript. I've checked for the existence of the ps file to detect completion but the file can be seen before it's actually completely created. A guy here can do it in VB with API calls, but I'm not sure how (or if) that can be converted to VFP.

Attempt to get an exclusive file lock (read/write) with fopen('pdf file',2). If you can, it has finished printing and nothing else has it open.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Reply
Map
View

Click here to load this message in the networking platform