• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1377
  • Last Modified:

Get application title form exe name

I have an exe running named test.exe
I want to know the title of its window (application title)

0
RETAILREALM
Asked:
RETAILREALM
  • 3
  • 2
1 Solution
 
dublingillsCommented:
0
 
dublingillsCommented:
0
 
SaldavoCommented:
Assuming you are using vb.net you can use the following example:
Label1.Text = My.Application.Info.Title  'Gets the application product title
Label2.Text = My.Application.Info.ProductName  'Gets the application productname info
Label3.Text = Me.Text  'Gets the form 'text' property

Open in new window

0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
RETAILREALMAuthor Commented:
Thanks for reply

Am using VB6.0 no dot net

Am in one application so my application is abc.exe

Now I want to find name of other application's caption whose exe name is  test.exe form  my application  abc.exe

0
 
dublingillsCommented:
Then you need to find the class name of the test.exe application and use the window handle returned by the FindWindow API in your call to GetWindowText.

See this article for more then combine it with the links in my previous post.

http://www.vbforums.com/showthread.php?t=356751

0
 
RETAILREALMAuthor Commented:
Thanks, that worked perfectly
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now