cmd
cmd copied to clipboard
C# library to run external programs in a simpler way. Demonstration of "dynamic" features of C#.
When I run command, the main cmd opened and close fastly. How to hide it? ``` dynamic cmd = new Cmd(); var output = cmd.ipconfig(); MessageBox.Show(output); ```
@manojlds are you still interested in developing this project?
Sometimes it is useful to have the error stream instead of stdout (esp. if the errorlevel != 0) For example: var x = cmd.git.describe(); //could return empty string, though console...
Question
What happens if someone wants to use one cmd instance twice, like Cmd.dir(s:true)(); Cmd.type("my file.txt")(); I would recommend to return new object instead of this, and make it a combination...