{"id":14623,"date":"2021-12-15T12:03:43","date_gmt":"2021-12-15T12:03:43","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=14623"},"modified":"2021-12-15T12:04:18","modified_gmt":"2021-12-15T12:04:18","slug":"creating-vbs-with-batch-file","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/programming\/creating-vbs-with-batch-file\/21477.html","title":{"rendered":"Creating VBS With Batch File"},"content":{"rendered":"<p>Hi, I&#8217;m trying to create a Windows Script to run a batch file [without that ugly black screen =P] using a Batch File [I know most people do the opposite but w\/e] but Command Prompt just won&#8217;t accept it [except for the last line], I get this message:<\/p>\n<p>&#8220;The system cannot find the path specified.<br \/>\n&#8216;Chr&#8217; is not recognized as an internet or external command, operable program or batch file.&#8221;<\/p>\n<p>Here&#8217;s the code of the batch file:<\/p>\n<p>@ECHO OFF<br \/>\nECHO Set WshShell = CreateObject(&#8220;WScript.Shell&#8221;) &gt; vbs.vbs<br \/>\nECHO WshShell.Run chr(34) &amp; &#8220;C:\\sandbox\\test.bat&#8221; &amp; Chr(34), 0 &gt;&gt; vbs.vbs<br \/>\nECHO Set WshShell = Nothing &gt;&gt; vbs.vbs<br \/>\nexit<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"iawp_total_views":12},"question-category":[55],"question_tags":[],"class_list":["post-14623","question","type-question","status-publish","hentry","question-category-programming"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question\/14623","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question"}],"about":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/types\/question"}],"author":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/comments?post=14623"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=14623"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=14623"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=14623"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}