.NET - Copying an executable across LAN to another computer, and executing it

后端 未结 4 898
遇见更好的自我
遇见更好的自我 2021-01-13 05:37

I\'m using .NET, and going crazy trying to find any helpful API that lets me transfer a file across a LAN network (trough admin credentials of course) and then execute it on

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-13 05:59

    I don't think that this is easily achieved. You can however copy the exe with .net. And then (also from .net, with Process.Start) invoke psExec and make it execute the program remotely.

提交回复
热议问题