Shell loads App into Processes and not Desktop?
Hello,
I am trying to shell notepad from my app (a service).
It's telling me that it is loaded, however it is not being displayed on the desktop. I've checked the task manager and it's not there, but it is listed in the processes
Does anyone know why this is happening? Is there a better way of doing it?
Here is a my code -
VB Code:
If Not modAppRunning.CheckForProcByExe(strAppName) Then
' Not found start it
retVal = Shell(notepad.exe, vbNormalFocus)
If retVal <> 0 Then
MsgBox "Started by the Service (" & NTService.DisplayName & ")"
Else
MsgBox "Error With Launch!"
End If
Else
MsgBox "Already Running"
End If
Cheers Al