Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ShellExecute
Message
De
15/09/2003 19:00:35
 
 
À
15/09/2003 18:07:31
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Divers
Thread ID:
00827713
Message ID:
00829182
Vues:
19
>>>Once I start an app with _ShellExecutehow can I close it through automation?
>>
>>Assuming it has an automation interface:
>>
>>
>>oX = GetObject(,"Excel.Application")
>>oX.Quit()
>>oX = NULL
>>
>
>Fred, your code assumes that the name of the application is known. I was thinking of some call of ShellExecute / _ShellExecute with the keyword 'Close', but my attempts failed. Who else has a suggestion?

Well, then you're either going to have to know the Window Title, or spin through the associated files types to determine which application name it is. Either is doable through the WIN API, but I thought you at least knew what application you were dealing with.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform