c# - System.IO.Directory.GetFiles Empty -


can shed light on why getfile() empty when enumerate "c:\windows\system32\tasks"?

system.io.directory.getfiles(@"c:\windows\system32\tasks"); 

i have checked this:

  • vs running admin

  • no exception thrown

  • there files in root

  • i can copy files out (via explorer) folder , works

the problem here running program x86, , it's being silently redirected folder has no files in it. (it redirected c:\windows\syswow64\tasks)

if compile x64 or anycpu, should see files.


Comments