2

I want to read the content of the folder located at %LOCALAPPDATA%. But it fails when I tried

Directory.GetDirectories("%LOCALAPPDATA%");

I get "The name 'Directory' does not exist in the current context" Please help.

Nam G VU
  • 33,193
  • 69
  • 233
  • 372

1 Answers1

5

Environment.ExpandEnvironmentVariables

leppie
  • 115,091
  • 17
  • 196
  • 297