打开所选文件夹(仅限) [英] Open a selected folder (only)

查看:96
本文介绍了打开所选文件夹(仅限)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道我可以用我的代码从计算机上打开一个文件夹然后我可以访问计算机中的所有文件。

I know I can open a folder from the computer with my code and then I have access to all the files in the computer.

我的问题是,是否可以打开文件夹并锁定用户,以便他只能从该文件夹中选择文件而不能浏览计算机上的其他文件夹?

My question is if it's possible to open the folder and lock the user on it so he can choose files only from that folder and cannot browse through the other folders on the computer?

任何解决方案?

推荐答案

fbd.RootFolder = Environment.SpecialFolder.ProgramFiles; 

它只给我一个windows的defult文件夹'我可以更改吗到新创建的文件夹?

It gives me only the defult folders of windows' can I change it to new created folders?


这篇关于打开所选文件夹(仅限)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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