I'm using the SYSTEM account and I've enabled the
option "Allow service to interact with desktop". If I try
open an application like Calculator it works fine but if
I try to open an application that I've made it doesn't.
Shell("calc", AppWinStyle.NormalFocus) ---> this works
Shell("alertas", AppWinStyle.NormalFocus) ---> this
doesn't
Thanks for any help
Ricardo Correia
-----Original Message-----
If you're using the SYSTEM account to run the service
and/or the service isnot configured to be able to interact with the desktop
then you won't havemuch luck.
Services are not supposed to launch applications.
--
____________________
Klaus H. Probst, MVP
http://www.vbbox.com/
"Ricardo Correia" <ri*************@rcsoft.pt> wrote in
messagenews:00****************************@phx.gbl... Hello,
Does anyone know how to open an application from a
windows service??
For example, I have a windows service running and
using a timer or something else I want to open Windows
Calculator! I used:
Shell("calc", AppWinStyle.NormalFocus)
and
Process.Start("calc")
but nothing seems to work!
Thanks for any help,
Ricardo Correia
.