How to get file list using system variable %LOCALAPPDATA%? [duplicate]
I want to read the content of the folder located at %LOCALAPP开发者_StackOverflow社区DATA%. But it fails when I tried
Directory.GetDirectories("%LOCALAPPDATA%");
I get "The name 'Directory' does not exist in the current context" Please help.
Environment.ExpandEnvironmentVariables
精彩评论