Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ShellExecute
Message
From
15/09/2003 19:00:35
 
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Miscellaneous
Thread ID:
00827713
Message ID:
00829182
Views:
20
>>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform