I have an .NET EXE file . I want to find the file created date and modified date in C# application. Can do it through reflection or with IO stream?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
Use :
You could use below code:
You can do that using
FileInfo
class:You can use this code to see the last modified date of a file.
And this code to see the creation time.
File.GetLastWriteTime Method
For create time File.GetCreationTime Method
File.GetLastWriteTime
to Get last modifiedFile.CreationTime
to get Created time