Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Get application title form exe name

Posted on 2009-05-20
6
Medium Priority
?
1,370 Views
Last Modified: 2012-05-07
I have an exe running named test.exe
I want to know the title of its window (application title)

0
Comment
Question by:RETAILREALM
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 4

Expert Comment

by:dublingills
ID: 24429743
0
 
LVL 4

Expert Comment

by:dublingills
ID: 24429757
0
 
LVL 1

Expert Comment

by:Saldavo
ID: 24429769
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!

 

Author Comment

by:RETAILREALM
ID: 24431299
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
 
LVL 4

Accepted Solution

by:
dublingills earned 2000 total points
ID: 24431791
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
 

Author Closing Comment

by:RETAILREALM
ID: 31583400
Thanks, that worked perfectly
0

Featured Post

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question