VB.net-Kill命令出现问题 [英] VB.net - Problem with Kill command

查看:102
本文介绍了VB.net-Kill命令出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好!
我尝试删除我的Internet临时文件,并通过使用命令"kill()"来执行此操作,但出现错误:找不到匹配的文件".
有什么问题吗?

谢谢!

Hello!
I try to delete my Temporary Internet Files and I do it by using the command "kill()", but I get an error: "No files found matching".
What is the problem?

Thanks!

推荐答案

问题是您无法杀死VB.一旦您认为它已被杀死,它就会以更好的东西"的形式返回.
The problem is that you can''t kill VB. Once you think it''s been killed, it comes back as "something better".


我假设您想通过代码而不是通过IE选项对话框来做到这一点.

Kill用于终止进程, System.IO.File.Delete [^ ]用于删除文件
I''m assuming you want to this from code not via the IE options dialog.

Kill is used to terminate a process, System.IO.File.Delete[^] is used to delete files


我在程序中使用了webbrowser控件,如果我使用System.IO.File.Delete,它告诉我它无法删除某些文件,因为它们正在被使用...和建议?
I use a webbrowser control in my program and if I use System.IO.File.Delete it tells me that it cannot delete some files because they are being used... and advices?


这篇关于VB.net-Kill命令出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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