Trying to get a Windows Service to run an executable on a shared drive

前端 未结 4 1334
Happy的楠姐
Happy的楠姐 2021-01-20 23:34

I have c# that will run in a windows service. I\'m trying to use the Process and ProcessStartInfo classes to run an executable. If the executable is on the local drive, no pro

4条回答
  •  一生所求
    2021-01-20 23:55

    What account is the service running as?

    LocalSystem will only allow access to the local file system. If you want to access a network resource, you will have to run the service as a domain or network user.

提交回复
热议问题