-
Simple Question
I am comparing 2 exe's together. First I took the hash code that is generated from the first exe and want to check it against another exe.
This works ok if the exe is not inuse. As soon as I start one of the exe's and try running the hash code compare, it bombs and says
An unhandled exception of type 'System.IO.IOException' occurred in mscorlib.dll
Additional information: The process cannot access the file "C:\file.exe" because it is being used by another process.
Is there any way I can still read this file if it is inuse ? Its important to me that I read this file when its running.
Any help please?
-
Re: Simple Question
You should be able to open it with read access whether or not it is running.
(be sure to set FileAccess.Read)
Code:
Dim stream2 As Stream = New FileStream("C:\file.exe",FileMode.Open,FileAccess.Read)