Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to do that from vfp8: open explorer, ctrl-a, emailto
Message
De
14/09/2005 10:13:21
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01049385
Message ID:
01049425
Vues:
13
>I know that we can execute some shell command from vfp8 but is there a way to do that:
>Open windows explorer from a specific folder
>Select all files (CTRL-A)
>Lauch the mailto


Eric

You are not clear on what do you want to do.
Do you mean you want to display Windows Explorer, have the user select a folder, press ctrl-A to select ALL files (or maybe some), then send those fail by email as an attachment?

If that is the case, do you want it under program control? (programatically)?
If you want the user to do it manually, then launching Explorer through ShellExecute is easy, but then you do not have control on what they do.

If you want it programatically, this is dangerous as selecting CTRL-A (all files) could potentially create a HUGE email (thousands of attachments).

If you still want to do this, you could use the MS Common Control instead of using Explorer directly. The control has the capability of multiple selection - as opposed to VFP's GetFile().

You could then return all file names into an aray or a cursor. You could even use ADIR()for this if you don't want to give the user control on individual files, but just to pick a full folder (or you could with more work).

Once you have the filenames, you can ZIP them with DynaZIP or similar program and then you can email with one of the different email options available. Borislav pointed you to one source of email routines already.

Note that your message says to "launch mailto". This will not work as it cannot add attachments through simple mailto priotocol (AFAIK).

Please be more descriptive on what you want to do.

HTH


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform