Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delete file after ShellExecute() finishes
Message
 
 
À
09/07/2003 12:46:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00808564
Message ID:
00808746
Vues:
9
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform