Cloak is a Windows Command Line wrapper library written in .Net that supports executing your commands while completely hiding the underlying console and providing output back to your application. It also provides access to last error happened while the commands got executed.
Also included a demo console GUI : A GUI Application is also included that you can use to see for knowing how to interface your application to Cloak library.
Features:
- Provides an interface to the console
- Executes the command without ever showing the underlying the Console process.
- Also gives you the last error during execution
Proposed Features for future releases
- To preserve the environment state between execution of different commands sets
- Validate the compatibility of powershell commands/scripts
Download CloakDownload Cloak source
Usage:
string commands = "dir c: n"
+ "del c:bootscan.log";
ConsoleHelper CH = new ConsoleHelper();
string Results = CH.ExecuteCommands(commands);
string Errors = CH.LastError;
Know more about this project and follow it on Codeplex @ Cloak.CodePlex.com