删除.dll文件 [英] delete .dll file

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

问题描述

大家好
我想使用Visual Stodio 2008删除c#项目中的dll文件

这是我的代码

hi all
i want to delete dll file in my c# project im using visual stodio 2008

this is my code

System.IO.File.Delete(Application.StartupPath + @"\oraociei10.dll");



但它给了我该信息
拒绝访问路径"F:... \ oraociei10.dll".

被另一个程序使用


当文件被另一个程序使用时,有什么方法可以删除它

或以任何方式关闭使用该文件的所有进程,然后在visual stodio 2008中将其删除.



but it gives me that message
Access to the path ''F:...\oraociei10.dll'' is denied.

its being used by another program


is there any way to delete file while its being used by another program

or any way to close all process that used the file then delete it in visual stodio 2008

推荐答案

否.没有其他方法可以删除使用的文件进程引起的...原因是它在文件上创建了锁,并且没有任何进程被允许更新,删除或编辑文件...
No..there is no other way to delete a file which is used by a process...cause it creates a lock over the file and no process is granted to update, delete or edit the file...


如果dll被您的程序,您无能为力.
如果是另一个锁定该dll的程序,则应先关闭该dll.
If the dll is in use by your program, there is nothing you can do.
If it''s another program locking that dll, you should close that first.


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

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