Checking Standard Input in C#

后端 未结 3 1350
花落未央
花落未央 2021-02-04 07:33

I\'m writing a small command line utility whose purpose is to parse the output of another utility. I want it to be invokable in two ways:

c:\\> myutility file         


        
3条回答
  •  不要未来只要你来
    2021-02-04 07:57

    Looks like you should be able to use some Windows API calls to determine that. Hans Passant's answer even has a helper class to wrap it all up.

提交回复
热议问题