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

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -