设置特殊文件夹 [英] Setting Special Folders

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

问题描述




我正在处理的应用程序应该设置特殊文件夹(收藏夹,

我的文档,...)但我找不到办法。到目前为止,我已经能够获得这些特殊文件夹的路径而不是设置它们。有谁知道

如何?


提前致谢,Que_Mas_Da。

解决方案

< blockquote>嗨


例如个人文件夹(我的文件)

Environment.GetFolderPath(Environment.SpecialFolde r.Personal)

>
我希望这有帮助吗?


Cor

我正在处理的应用程序应该设置特殊文件夹(收藏夹,我的文件,......)但我找不到办法。到目前为止,我已经能够获得这些特殊文件夹的路径而不是设置它们。有没有人
知道怎么做?



你好Cor,


非常感谢您的回答。事实上,这是我用来获得

当前路径的方法,但是如果你想改变它怎么设置一个呢?


谢谢再次,Que_Mas_Da。


" Cor Ligthert" <无********** @ planet.nl> escribióenel mensaje

news:u#************** @ TK2MSFTNGP09.phx.gbl ...



例如个人文件夹(我的文件)
Environment.GetFolderPath(Environment.SpecialFolde r.Personal)

我希望这有帮助吗?
Cor

我正在处理的应用程序应该设置特殊文件夹
(收藏夹,我的文档,...),但我找不到这样做的方法。到目前为止,我已经


能够

来获取这些特殊文件夹的路径但不设置它们。有人


知道

怎么做?




你好Quemasda ,


我认为你无法手动改变这种地图,那你为什么要通过程序来实现这一点呢?这只是我所使用的OP系统中的枚举




Cor


非常感谢为你的答案。事实上,这是我用来获取当前路径的方法,但如果你想改变它,你如何设置一个新的呢?

再次感谢,Que_Mas_Da。



Hi,

The application I''m working on should set the Special Folders (Favorites,
My Documents, ...) but I can''t find the way to do it. So far, I''ve been able
to get the path of those Special Folders but not set them. Does anybody know
how?

Thanks in advance, Que_Mas_Da.

解决方案

Hi

By instance the personal folder (My documents)
Environment.GetFolderPath(Environment.SpecialFolde r.Personal)

I hope this helps?

Cor

The application I''m working on should set the Special Folders (Favorites,
My Documents, ...) but I can''t find the way to do it. So far, I''ve been able to get the path of those Special Folders but not set them. Does anybody know how?



Hi Cor,

thanks a lot for your answer. In fact, this is what I use to get the
current path, but how do you set a new one if you want to change it?

Thanks again, Que_Mas_Da.

"Cor Ligthert" <no**********@planet.nl> escribió en el mensaje
news:u#**************@TK2MSFTNGP09.phx.gbl...

Hi

By instance the personal folder (My documents)
Environment.GetFolderPath(Environment.SpecialFolde r.Personal)

I hope this helps?

Cor

The application I''m working on should set the Special Folders (Favorites, My Documents, ...) but I can''t find the way to do it. So far, I''ve been


able

to get the path of those Special Folders but not set them. Does anybody


know

how?




Hi Quemasda,

I think you can not change this kind of maps by hand, so why would you be
able to do it by program. It is just an enumeration from the used OP system
in my opinon.

Cor


thanks a lot for your answer. In fact, this is what I use to get the
current path, but how do you set a new one if you want to change it?

Thanks again, Que_Mas_Da.



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

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