Question File not found on process.start()

marco208

Member
Joined
Jun 14, 2011
Messages
6
Programming Experience
Beginner
Hi,

its really simple...

VB.NET:
        Dim myProcess As New Process()


        Try         


            myProcess.StartInfo.UseShellExecute = False
            myProcess.StartInfo.FileName = "C:\windows\system32\wuauclt.exe"
            myProcess.Start()


        Catch e As Exception
            MsgBox((e.Message))
        End Try

cant run...

VB.NET:
        Dim myProcess As New Process()


        Try         


            myProcess.StartInfo.UseShellExecute = False
            myProcess.StartInfo.FileName = "C:\windows\system32\wuapp.exe"
            myProcess.Start()


        Catch e As Exception
            MsgBox((e.Message))
        End Try

does run!


WHY??? :( im so confused...

it says file not found... but it REALLY is there...

Thanks already!

Gr,
Marco
 
no need anymore it redirects to syswow64 use
Public Declare Function Wow64DisableWow64FsRedirection Lib "kernel32" (ByRef oldvalue As Long) As Boolean
and activat function with value 0 bam!
 
Back
Top