See if processes are the same program?

If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
7 posts Page 1 of 1
Contributors
User avatar
Cheatmasterbw
Coding God
Coding God
Posts: 1506
Joined: Fri Jan 01, 2010 2:30 pm

Is there a way to check if two processes are the same program? One way I thought of is to compare GUIDs, but I dont know how to do that. Is comparing GUIDs good, or is there an easier way to compare processes?

Note:
the processes can have different file names, and may have different code (for different versions of the program)
http://www.megaapps.tk/
User avatar
MrAksel
C# Coder
C# Coder
Posts: 1758
Joined: Fri Mar 26, 2010 12:27 pm

So, one example is; you want to check if a process of Visual Studio 2008 is the same as Visual Studio 2010?
LMAOSHMSFOAIDMT
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;


Over 30 projects with source code!
Please give reputation to helpful members!

Image
Image
User avatar
Cheatmasterbw
Coding God
Coding God
Posts: 1506
Joined: Fri Jan 01, 2010 2:30 pm

I have a program that can be updated. I want to check if this program is the same as another running program (to see if the program is running, aven if the other program is another version).
http://www.megaapps.tk/
User avatar
DreadNought
VIP - Donator
VIP - Donator
Posts: 116
Joined: Fri Jan 08, 2010 12:37 pm

Fine the program application path and generate a CRC of the executable and check it again previous version CRC, long, sloppy but I dont know how to actually accomplish what your doing.
Bound and boom tech,
The Future Of Coding
User avatar
MrAksel
C# Coder
C# Coder
Posts: 1758
Joined: Fri Mar 26, 2010 12:27 pm

DreadNought, the files content will not be the same after he upgraded the program.
LMAOSHMSFOAIDMT
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;


Over 30 projects with source code!
Please give reputation to helpful members!

Image
Image
User avatar
clanc789
Coding Guru
Coding Guru
Posts: 786
Joined: Tue Nov 02, 2010 4:45 pm

MrAksel wrote:
DreadNought, the files content will not be the same after he upgraded the program.
What do you mean that it will not be the same? You can put it into an equation like this:
Code: Select all
If crccodeversion1.0 = myprogram then 'nothing 
else update()
In which update() is the function to start the updater etc.
Practice makes perfect!

VIP since: 6-10-2011
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

It might be possible to get some details from the assembly information.
You could check with FileVersionInfo.
Code: Select all
        Dim fvi As FileVersionInfo = FileVersionInfo.GetVersionInfo("C:\test.exe")
        If fvi.ProductName = "test" Then

        End If
7 posts Page 1 of 1
Return to “Coding Help & Support”