|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Starting processHi,
I'm currently writing windows .net service (non-interactive) that shall start a specific program from disk the moment it gets started itself. Now, when I simply call Process.Start(filename) I receive an AccessDenied error. So, how can I start a process with the same rights as the service itself the moment the service starts? Thanks a lot Peter Hi Peter,
Your code will be running under the service account. Does the service account have the appropriate permission? (Instead of NetworkService try LocalService) -- Show quoteDave Sexton "Peter Schmitz" <PeterSchm***@discussions.microsoft.com> wrote in message news:E4C8C54E-F309-493D-A244-73B6E2755211@microsoft.com... > Hi, > > I'm currently writing windows .net service (non-interactive) that shall > start a specific program from disk the moment it gets started itself. Now, > when I simply call Process.Start(filename) I receive an AccessDenied error. > So, how can I start a process with the same rights as the service itself the > moment the service starts? > > Thanks a lot > Peter |
|||||||||||||||||||||||