Allusers文件夹路径 [英] Allusers Folder Path

查看:89
本文介绍了Allusers文件夹路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何获得"Allusers \ Startup"的路径?

DirectoryInfo dir = new DirectoryInfo(Environment.GetFolderPath(Environment.SpecialFolder.Startup));

与此相关我只是从当前用户那里获得的!

Hi, how do i got the path of "Allusers\Startup"?

DirectoryInfo dir = new DirectoryInfo(Environment.GetFolderPath(Environment.SpecialFolder.Startup));

with this i got only from the current user !

推荐答案

您将需要使用

you will need to use CommonStartup instead, like so:

Environment.GetFolderPath(Environment.SpecialFolder.CommonStartup)

有关所有可能值的更多信息,请 看到此链接.

for more information on all possible values, please see this link.

希望这会有所帮助!


这篇关于Allusers文件夹路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆