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")
Dim objProcess As System.Diagnostics.Process
objProcess = New System.Diagnostics.Process()
objProcess.StartInfo.FileName = "MRT"
and also the Shell(...) command
but nothing works!! The file is there I can open it from the explorer!
Please help me..
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.
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)