Calling a batch file from a windows service

后端 未结 3 1254
孤街浪徒
孤街浪徒 2021-01-26 04:23

I have a service that needs to call a batch when a new file is copied to a directory. I tried using CreateProcess, ShellExecute, ShellExecuteEx

3条回答
  •  执念已碎
    2021-01-26 04:42

    Go to run->services.msc->right click on the service ->properties->
    logon->check enable     service to interact with desktop-make it enable
    

提交回复
热议问题