How to capture Shell command output in C#?

后端 未结 5 436
梦毁少年i
梦毁少年i 2020-12-05 05:30

Summary:

  • query registry on remote machine
  • capture output to use in application
  • needs to be in csharp
  • so far all methods used can onl
5条回答
  •  -上瘾入骨i
    2020-12-05 06:09

    This doesn't answer the question, but the Registry.OpenRemoteBaseKey method connects to another machine's registry in the same way that the REG command does. Call RegistryKey.GetSubKeyNames to obtain the same output as REG QUERY.

提交回复
热议问题