Click here to Skip to main content
13,087,566 members (82,870 online)
Rate this:
Please Sign up or sign in to vote.
See more:

I am making a net framework 2.0 app in
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.Arguments =
            objProcess.StartInfo.FileName = "MRT"
            'objProcess.StartInfo.WindowStyle = ProcessWindowStyle.Normal
            'Wait until it's finished
            'Exitcode as String

and also the Shell(...) command

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

Please help me..
Posted 12-Oct-12 7:15am
Sergey Alexandrovich Kryukov 12-Oct-12 13:36pm
I also don't have this file in this directory; chances are, you don't have it there. Why?
OriginalGriff 12-Oct-12 14:08pm
Hi SA - MRT is the malicious software removal tool: you probably do have it, unless you have set your PC to not download it.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.
Sergey Alexandrovich Kryukov 12-Oct-12 14:48pm
Ah, this is the answer. A 5.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.170813.1 | Last Updated 12 Oct 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100