tags:

views:

20

answers:

1

I am looking to go from the process name to the windows title.

e.g

'winamp.exe' -> '1. Britney Spears - Hit me baby one more time'

Thanks

Solution:

Dim p As Process

For Each p In Process.GetProcessesByName("winamp")

    MsgBox(p.MainWindowTitle.ToString)

Next
+1  A: 

Have a look at the System.Diagnostics.Process class:

Process p = <Get process>
Console.WriteLine(p.MainWindowTitle)
Konrad Rudolph
Thanks.. the MainWindowTitle was what I needed :)
Pablo