GMan Well-Known Member Licensed User Longtime User Jan 24, 2019 #1 How can i call and start an external program on a windows pc ? Seems that the SHELL command is rigth, but this here dont work: in Appstart Code: Copy Dim shl As Shell shl.Initialize("shl", "java", _ Array As String("mysoftware.exe")) shl.WorkingDirectory = "C:\Program Files (x86)\MySoftware\" shl.Run(10000) additional sub Code: Copy Sub shl_ProcessCompleted (Success As Boolean, ExitCode As Int, StdOut As String, StdErr As String) If Success And ExitCode = 0 Then Log("Success") Log(StdOut) Else Log("Error: " & StdErr) End If ExitApplication End Sub
How can i call and start an external program on a windows pc ? Seems that the SHELL command is rigth, but this here dont work: in Appstart Code: Copy Dim shl As Shell shl.Initialize("shl", "java", _ Array As String("mysoftware.exe")) shl.WorkingDirectory = "C:\Program Files (x86)\MySoftware\" shl.Run(10000) additional sub Code: Copy Sub shl_ProcessCompleted (Success As Boolean, ExitCode As Int, StdOut As String, StdErr As String) If Success And ExitCode = 0 Then Log("Success") Log(StdOut) Else Log("Error: " & StdErr) End If ExitApplication End Sub
DonManfred Expert Licensed User Longtime User Jan 24, 2019 #2 GMan said: dont work Click to expand... do you get any error? Upvote 0
GMan Well-Known Member Licensed User Longtime User Jan 24, 2019 #3 Sorry, forgot it: Hauptklasse mysoftware.exe konnte nicht gefunden oder geladen werden Is the code with the Working Dircetory with "\" correct ? But also without it causes the same error Upvote 0
Sorry, forgot it: Hauptklasse mysoftware.exe konnte nicht gefunden oder geladen werden Is the code with the Working Dircetory with "\" correct ? But also without it causes the same error
DonManfred Expert Licensed User Longtime User Jan 24, 2019 #4 try it with Code: Copy fx.ShowExternalDocument("C:\Program Files (x86)\MySoftware\mysoftware.exe") Not sure if that works. Last edited: Jan 24, 2019 Upvote 0
try it with Code: Copy fx.ShowExternalDocument("C:\Program Files (x86)\MySoftware\mysoftware.exe") Not sure if that works.
DonManfred Expert Licensed User Longtime User Jan 24, 2019 #5 GMan said: Hauptklasse mysoftware.exe konnte nicht gefunden oder geladen werden Click to expand... what is mysoftware.exe for an executable? What is the development you used to generate this? It is a packaged java app? Upvote 0
GMan said: Hauptklasse mysoftware.exe konnte nicht gefunden oder geladen werden Click to expand... what is mysoftware.exe for an executable? What is the development you used to generate this? It is a packaged java app?
GMan Well-Known Member Licensed User Longtime User Jan 24, 2019 #6 Thx a lot (again) DonManfred - that does the trick The mysoftware.exe is another JavaExecutable.will call one from the other for supporting each other btw: have a look to your Moneypool Upvote 0
Thx a lot (again) DonManfred - that does the trick The mysoftware.exe is another JavaExecutable.will call one from the other for supporting each other btw: have a look to your Moneypool
DonManfred Expert Licensed User Longtime User Jan 24, 2019 #7 GMan said: btw: have a look to your Moneypool Click to expand... Ahh, it was you? (Fr****** A****) Thank you very much for the donation! ;-) Upvote 0
GMan said: btw: have a look to your Moneypool Click to expand... Ahh, it was you? (Fr****** A****) Thank you very much for the donation! ;-)
GMan Well-Known Member Licensed User Longtime User Jan 24, 2019 #8 Jepp, but thanking is my part Upvote 0