开发者

How to get file list using system variable %LOCALAPPDATA%? [duplicate]

This question already has answers here: How do I get %LocalAppData% in c#? (2 answers) Closed 5 years ago.

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜