{"id":5169,"date":"2014-03-30T19:19:42","date_gmt":"2014-03-30T19:19:42","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/java-api-to-run-windows-batch-programs-duplicate-collection-of-common-programming-errors\/"},"modified":"2014-03-30T19:19:42","modified_gmt":"2014-03-30T19:19:42","slug":"java-api-to-run-windows-batch-programs-duplicate-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/java-api-to-run-windows-batch-programs-duplicate-collection-of-common-programming-errors\/","title":{"rendered":"java api to run windows batch programs? [duplicate]-Collection of common programming errors"},"content":{"rendered":"<p>The usual <code>ProcessBuilder<\/code> stuff works with batch files, as does <code>Runtime#exec<\/code>. The command you&#8217;re executing is <code>cmd.exe<\/code>, the batch file name is an argument to it. I believe the argument sequence is <code>cmd.exe<\/code>, <code>\/c<\/code>, <code>batch_file_name<\/code>. <em>(Edit: Yup, and in fact, I found a question here that this question duplicates on SO where that&#8217;s in the answer.)<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The usual ProcessBuilder stuff works with batch files, as does Runtime#exec. The command you&#8217;re executing is cmd.exe, the batch file name is an argument to it. I believe the argument sequence is cmd.exe, \/c, batch_file_name. (Edit: Yup, and in fact, I found a question here that this question duplicates on SO where that&#8217;s in the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5169","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5169","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5169"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5169\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5169"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5169"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5169"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}