简体   繁体   English

窗体应用程序VB.NET File.Create方法,拒绝访问路径

[英]Form Application VB.NET File.Create Method, Access Denied to Path

I wrote an application which parses a website and downloads an mp4 file from website. 我编写了一个可解析网站并从网站下载mp4文件的应用程序。 User can select the path where he wants to download the video. 用户可以选择他要下载视频的路径。

When I try to download I get an exception for the file, Access Denied to Path . 尝试下载时,文件异常, Access Denied to Path When I gave the permissions to folder that I chose, then works fine. 当我授予所选文件夹的权限时,即可正常工作。

How can I resolve that problem? 我该如何解决这个问题? End-User will select the folder. 最终用户将选择文件夹。 How do I change the permissions? 如何更改权限? or any other solution ? 或任何其他解决方案?

The end-user can only select a folder that he has write access to. 最终用户只能选择他具有写权限的文件夹。

You're asking to destroy the Windows security model. 您要破坏Windows安全模型。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM