c # GetLastAccessTime always returns the same value

0

Working under Windows 10 HE, I always get the same DateTime using any of these:

File.GetLastAccessTime("file");
Directory.GetLastAccessTime("file");
new FileInfo("file").LastAccessTime;

After using, opening or reading the file, it always returns the same DateTime value.

I also tried changing:

fsutil behavior set disablelastaccess 0

but it still does not work.

Any ideas?

Thanks

    
asked by Leonardo 19.12.2018 в 17:40
source

0 answers