Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delete file after ShellExecute() finishes
Message
 
 
To
09/07/2003 12:46:03
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00808564
Message ID:
00808746
Views:
10
Andrus,

Can your app go modal while the other app is running? If so you can use the oShell.Run() command with .t. as the lat parameter.

If your app can't go modal, you'll have to create a datastore to hold the filenames you created, then in your ON SHUTDOWN handler check to see if you can erase them. This might be problematic because the launched apps might still have the files open.

If your app crashes you may still leave these files laying around, unless your startup goes back to the datastore and checks for files it didn't get a chance to clean up.

Also note if security is a risk here remember the users are going to be able to do File/SaveAs in the other apps and replicate the data out to some other file your app doesn't know anything about.

>I use Gen field to hold doc, pdf, txt, xls and other types of
>files in my VFP 7 applicaton.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform