public sub shTest
Dim sh As Shell
Dim pathToExe As String = File.Combine(File.DirApp,"yourExe.exe")
sh.Initialize("test",pathToExe,Null)
sh.RunSynchronous(-1)
end sub
public Sub test_ProcessCompleted (Success As Boolean, ExitCode As Int, StdOut As String, StdErr As String)
log(Success)
End Sub
public sub shTest
Dim sh As Shell
Dim pathToExe As String = File.Combine(File.DirApp,"yourExe.exe")
sh.Initialize("test",pathToExe,Null)
sh.RunSynchronous(-1)
end sub
public Sub test_ProcessCompleted (Success As Boolean, ExitCode As Int, StdOut As String, StdErr As String)
log(Success)
End Sub
Is working for me too.
Even with a list of arguments in place of Null.
But when one argument is a path it's only working with shortname path or file, not with longname (especially with blank inside).
Do you know a way to get the shortname from a longname ?