{"id":156,"date":"2011-07-12T21:50:48","date_gmt":"2011-07-12T21:50:48","guid":{"rendered":"http:\/\/thewiredguy.com\/wordpress\/?p=156"},"modified":"2011-07-12T21:50:48","modified_gmt":"2011-07-12T21:50:48","slug":"cloak-a-console-wrapper-library","status":"publish","type":"post","link":"https:\/\/inullable.in\/blog\/?p=156","title":{"rendered":"Cloak (A Console wrapper library)"},"content":{"rendered":"<p>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.<\/p>\n<p>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.<\/p>\n<p><strong>Features:<\/strong><\/p>\n<div class=\"wikidoc\">\n<ul>\n<li>Provides an interface to the console<\/li>\n<li>Executes the command without ever showing the underlying the Console process.<\/li>\n<li>Also gives you the last error during execution<\/li>\n<\/ul>\n<\/div>\n<p><strong>Proposed Features for future releases<\/strong><\/p>\n<ol>\n<li>To preserve the environment state between execution of different commands sets<\/li>\n<li>Validate the compatibility of powershell commands\/scripts<\/li>\n<\/ol>\n<p><a style=\"text-decoration: none; font-weight: bold; border: outset 3px  #317200; background: #7ABB1A; margin: 2px; padding: 2px; color: #fcfcfc;\" href=\"http:\/\/cloak.codeplex.com\/releases\">Download Cloak<\/a><a style=\"text-decoration: none; font-weight: bold; border: outset 3px  #317200; background: #7ABB1A; margin: 2px; padding: 2px; color: #fcfcfc;\" href=\"http:\/\/cloak.codeplex.com\/SourceControl\/list\/changesets\">Download Cloak source<\/a><\/p>\n<p><img loading=\"lazy\" style=\"margin: 5px;\" src=\"http:\/\/www.codeplex.com\/Project\/Download\/FileDownload.aspx?ProjectName=cloak&amp;DownloadId=258280\" alt=\"\" width=\"884\" height=\"516\" \/><\/p>\n<p><strong>Usage:<\/strong><\/p>\n<pre><code>\nstring commands = \"dir c: n\"\n                       + \"del c:bootscan.log\";\nConsoleHelper CH = new ConsoleHelper();\nstring Results = CH.ExecuteCommands(commands);\nstring Errors = CH.LastError;\n<\/code><\/pre>\n<p>Know more about this project and follow it on Codeplex @ <a href=\"http:\/\/cloak.codeplex.com\">Cloak.CodePlex.com<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/inullable.in\/blog\/index.php?rest_route=\/wp\/v2\/posts\/156"}],"collection":[{"href":"https:\/\/inullable.in\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/inullable.in\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/inullable.in\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/inullable.in\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=156"}],"version-history":[{"count":0,"href":"https:\/\/inullable.in\/blog\/index.php?rest_route=\/wp\/v2\/posts\/156\/revisions"}],"wp:attachment":[{"href":"https:\/\/inullable.in\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=156"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/inullable.in\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=156"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/inullable.in\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=156"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}