找不到文件错误 [英] File not found error

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

问题描述

你好,

我正在vb.net中制作一个Net Framework 2.0应用程序
并且我尝试了所有流行的方法来启动文件
(我希望它在用户的system32文件夹中启动mrt.exe)
但它不起作用,并且出现文件未找到错误.

我试过了

Hello,

I am making a net framework 2.0 app in vb.net
and I have tried all popular methods to start a file
(I want it to start mrt.exe in the user''s system32 folder)
but it doesn''t work and I get a file not found error.

I have tried

System.Diagnostics.Process.Start(Environment.GetFolderPath(SpecialFolder.System) & "\MRT.exe")







and

Dim objProcess As System.Diagnostics.Process
            objProcess = New System.Diagnostics.Process()
            'objProcess.StartInfo.Arguments =
            objProcess.StartInfo.FileName = "MRT"
            'objProcess.StartInfo.WindowStyle = ProcessWindowStyle.Normal
            objProcess.Start()
            'Wait until it's finished
            'objProcess.WaitForExit()
            'Exitcode as String
            'Console.WriteLine(objProcess.ExitCode.ToString())
            objProcess.Close()



还有Shell(...)命令

但是没有用!!该文件在那里,我可以从资源管理器中打开它!

请帮助我..



and also the Shell(...) command

but nothing works!! The file is there I can open it from the explorer!

Please help me..

推荐答案

MRT.EXE是Microsoft恶意软件删除工具.
它确实确实存在于system32文件夹(已设置为定期下载的PC机)中,但没有用户界面.结果,您可能永远不会知道自己是否成功运行.

您的第一个版本应该可以正常工作,但是由于完全没有显示,并且可能很快就会关闭,因此您不太可能知道它是否可以工作.
MRT.EXE is the Microsoft Malicious Software Removal Tool.
It does indeed live in the system32 folder (of PC''s that are set to download it on a regular basis), but it has no user interface. As a result, you will probably never know whether you are successfully running it or not.

Your first version should work fine, but since there is no display at all involved, and it will likely shut itself down pretty quickly it is unlikely that you will ever know if it worked.


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

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