删除只读的文件夹和子文件夹以及包含的文件 [英] Delete the read only Folder and Sub folders And the files of contains

查看:129
本文介绍了删除只读的文件夹和子文件夹以及包含的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何通过vb.net编码删除只读的Folder和Sub文件夹以及包含的文件.
我的文件夹位置:C:\ Program Files \ TechnoAid Software \ Municipality Setup \ Del

在Del文件夹上方,找到C:\ Program Files \ TechnoAid Software \ Municipality Setup
但是有很多包含的Folder&Sub文件夹和文件.

我该如何解决这个问题???
请提供给vb.net编码.....

How can i delete the read only Folder and Sub folders And the files of contains through vb.net coding.
My folder Location : C:\Program Files\TechnoAid Software\Municipality Setup\Del

Above Del Folder locate to C:\Program Files\TechnoAid Software\Municipality Setup
But there are a lot of Folder & Sub folders & files of contains.

How can i solve this problem????
Please supply to vb.net coding.....

推荐答案

您不知道.用户无权在Win Vista和7的程序文件"下写入(或删除)任何内容.

您必须重新设计应用程序,以将用户特定的文件放在更合适的位置.这取决于您正在执行的操作,无论是按机器还是按用户的文件,漫游配置文件支持,...
You don''t. Users don''t have access to write (or delete) anything under Program Files under Win Vista and 7.

You have to redesign your application to put user specific files in more appropriate locations. What that is depends on what you''re doing, whether those are per-machine or per-user files, roaming profile support, ...


这篇关于删除只读的文件夹和子文件夹以及包含的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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