Question Launch program in backround?

tengkie

New member
Joined
Nov 5, 2008
Messages
2
Programming Experience
Beginner
I have this code:

Dim strAppPath As String = System.IO.Directory.GetCurrentDirectory()
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
System.Diagnostics.Process.Start(strAppPath + "\xsentinel.bat")
Label1.Visible = True
End Sub

That codes will execute the "xsentinel.bat"..

But, is there any ways that I can use to made the "xsentinel.bat" will running in background (Sys Tray)?

Thanks before...
 
Programs don't actually run in the system tray. The program is either running or not and it may display a form or not and it may display an icon in the system tray or not. Does this application support a system tray icon already? If so then you would probably just have to run it minimsed. If not then there's no simple way to achieve what you want. There is a very complex way, but I don't think you really want to start delving into the Windows APi for this.
 
Back
Top