c# - Directory.EnumerateFiles exception -
i have rare behaviour.
i'm using windows 10 x64 , visual studio 2013 , when run code in 32 bits application
directory.enumeratefiles(@"c:\windows\system32\winevt").count()
i have exception of type system.io.directorynotfoundexception
if open non admin cmd console , run
dir c:\windows\system32\winevt
the result list of folders in winevt folder. folder exists , has sub folders.
any idea?
thank you
in x64 version - access system32 redirected c:\windows\systemwow64.
try use variant access it:
directory.enumeratefiles(@"c:\windows\sysnative\winevt").count()
Comments
Post a Comment