Dim fFile1 As New FileInfo(sFileName1)
Dim myProcess1 As System.Diagnostics.Process
myProcess1.StartInfo.FileN
myProcess1.StartInfo.Redir
myProcess1.StartInfo.Redir
Dim reader As StreamReader
reader= myProcess1.StandardOutput
Dim processOut as String
processOut += reader.ReadLine()
reader = myProcess1.StandardError
Dim processError as String
processError += reader.ReadLine()
myProcess1.WaitForExit();
myProcess1.Dispose();
'read the error in processError
Main Topics
Browse All Topics





by: jensfiedererPosted on 2007-04-25 at 05:52:36ID: 18973026
If the error is in converting args[4] to integer, it is probably because "arg4" is not a good integer value
I think, the way you are doing it:
args[0] - "c:\myfile.exe" - 0th argument is the name of the executing file
args[1] = arg1
args[2] = arg2
args[3] = arg3
args[4] = arg4
args[5] = 3