| | | Junior Member
       
Group: Forum Members Last Login: 9/5/2008 1:08:19 AM Posts: 11, Visits: 50 |
| | Hi, How to retreive the version no application reunning in the system.I have to get all the processes from the registry. |
| | | | 
Forum God
       
Group: Forum Members Last Login: Today @ 3:25:33 AM Posts: 846, Visits: 5,126 |
| | To get the version no. in vb 2005 or vb 2008 use : MessageBox.Show(My.Application.Info.Version.ToString)
WayneI know enough to be dangerious. It is hard to understand how a cemetery can raise its burial rates and blame it on the cost of living. |
| | | | 
Forum God
       
Group: Forum Members Last Login: Today @ 7:34:31 PM Posts: 1,465, Visits: 3,404 |
| coolest_avi007 (8/27/2008)
Hi, How to retreive the version no application reunning in the system.I have to get all the processes from the registry. Now I know this is mainly for VB6 but there is some VB.Net examples in there. Download and install API-Guide.  'VB6 GetFileVersionInfoSize API
'The GetFileVersionInfoSize function determines whether the operating system can obtain 'version information about a specified file. If version information is available, 'GetFileVersionInfoSize returns the size in bytes of that information.
'VB.Net code
Imports System Imports System.Diagnostics Public Module modmain
Sub Main() 'The KPD-Team 2001 'URL: http://www.allapi.net/dotnet/ 'E-Mail: KPDTeam@Allapi.net Dim versionInfo As FileVersionInfo = FileVersionInfo.GetVersionInfo("C:\Windows\Notepad.exe") Console.WriteLine("Notepad version " + versionInfo.FileVersion) Console.WriteLine("Description: " + versionInfo.FileDescription)
End Sub End Module
Keithhttp://www.martin2k.co.uk/forums/ I've been programming with VB for 12 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning. |
| | | | Junior Member
       
Group: Forum Members Last Login: 9/5/2008 1:08:19 AM Posts: 11, Visits: 50 |
| | thnx for the reply.. but whatever you have mentioned above is only for a particular application. But I need to get information about all the application running in the system? do i need to get the info from the registry of the windows? |
| | | | 
Forum God
       
Group: Forum Members Last Login: Today @ 3:25:33 AM Posts: 846, Visits: 5,126 |
| I'm afraid you will have to go to registery. However, I do not know how to find anything there. If you knew where the exe was stored you could get the version number from the header.
WayneI know enough to be dangerious. It is hard to understand how a cemetery can raise its burial rates and blame it on the cost of living. |
| |
|
|