Hello,

I have an executable (EXE) that I would like to run from within my VB.NET program. I've looked into Process.Start("[PATH]\[EXE]"), where PATH is the path to my executable, and EXE is the name of the executable. However this throws an error, saying "The parameter is incorrect". I've managed to avoid this error with the following code:

Code:
        Dim proc As New Process
        With proc.StartInfo
            .WorkingDirectory = _STFileInfo.DirectoryName
            .FileName = _STFileInfo.Name
        End With

        proc.Start()
I should note that _STFileInfo is a variable of FileInfo type that holds the path of my executable. However, using the above code, all that happens is the command shell is opened then immediately closed. My executable doesn't appear to have run at all. I've also tried adding "proc.WaitForExit()" after "proc.Start()", but that doesn't seem to do anything.

Any ideas?