Example::
Private parms As List
Private DirApp As String = File.Combine(File.DirApp,"JAR2_ConvertPDFtoJPG.exe")
Try
parms.Initialize
parms.Add("-jar")
parms.Add(DirApp)
shl.Initialize("shl", "java.exe" , parms)
shl.WorkingDirectory = File.DirApp
shl.Run(-1) 'set a timeout of 10 seconds - Pass -1 to disable the timeout.
Return True
Catch
If shl.IsInitialized Then shl.KillProcess
Return False
End Try
The above example will allow you to launch and open the program window.
How can I prevent the same program from restarting?
- Instead, I would like to focus on the existing window of this program (on the monitor screen).
I don't know if you can do something like that on external executable files.
How can I extract the assigned name of the charged window?
I am asking for possible knowledge on this subject.