请帮助文件许可VB [英] Please Help with filepermission VB

查看:88
本文介绍了请帮助文件许可VB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前制作的扫描器非常有限,似乎只能扫描所选根目录的一个级别.然后,我在button1.click事件中添加了get file方法,令我惊讶的是,当我单击button1时出现错误,表示拒绝访问Bitdefender 2011 NAG文件.什么是g?

I currently have made a very limited scanner that only seems to scan one level of the root dir selected. I then added the get file method in the button1.click event and to my surprise when I click the button1 is errors, saying access denied to Bitdefender 2011 NAG file. What Is Nag? and how do I use the filepermission.io to grant access to the filesystem so my scan continues un interupted?

推荐答案

除非您专门搜索NAG/protected/hidden,否则如何使用filepermission.io授予对文件系统的访问权限,以便继续扫描而不会中断?文件,最好的方法是将应用程序设置为忽略无法访问的文件.

为此,将您的代码包含在try/catch块中,将catch部分设置为catch UnauthorisedAccessException并将该块保留为空,以便什么都不会发生,并且您的程序将继续.

如果您必须获取那些文件,恐怕我将无济于事,因为我从来没有去做过.
Unless you are specifically searching for NAG/protected/hidden files, the best course is to set your application to ignore inaccessible files.

To do that enclose your code in a try/catch block, set the catch part to catch UnauthorisedAccessException and leave the block empty, so that nothing happens and your program will continue.

If you have to get those files I am afraid I cannot help you, since I have never bothered to do it.


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

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