How to get creation DateTime of the currently running executable?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi, All
The statment below doesn't return executable name with full Path,
I need to get Datetime creation of the current .EXE to compare with updated
version.
sName= System.IO.Path.GetDirectoryName( _
System.Reflection.Assembly.GetExecutingAssembly().GetName().FullName)
Please, help

elena
 
Try this instead:

sName = System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase
 
Thank you, Sergey
I got it.

Sergey Bogdanov said:
Try this instead:

sName = System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase


--
Sergey Bogdanov [.NET CF MVP, MCSD]
http://www.sergeybogdanov.com

Hi, All
The statment below doesn't return executable name with full Path,
I need to get Datetime creation of the current .EXE to compare with updated
version.
sName= System.IO.Path.GetDirectoryName( _
System.Reflection.Assembly.GetExecutingAssembly().GetName().FullName)
Please, help

elena
 
Back
Top