{"id":6445,"date":"2021-11-19T08:11:17","date_gmt":"2021-11-19T08:11:17","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=6445"},"modified":"2021-11-19T08:18:17","modified_gmt":"2021-11-19T08:18:17","slug":"the-syntax-of-the-command-is-incorrect","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/programming\/the-syntax-of-the-command-is-incorrect\/20712.html","title":{"rendered":"The Syntax Of The Command Is Incorrect."},"content":{"rendered":"<p>hi<br \/>\nI am writing long but simple batch. In some stage I got &#8220;The syntax of the command is incorrect.&#8221; in few commands, I am sure are correct (e.g. &#8220;IF EXIST &#8220;%PROGRAMFILES%\\Saveresults\\saveresult.exe&#8221; ( &#8220;.<br \/>\nSame command works properly when written in Command Prompt window or in another batch.<br \/>\nI tried to resave the batch, also in other editors, several times , but the result is the same.<\/p>\n<p>editor: Notepad++, ANSI encoding, DOS\/Windows format<\/p>\n<p>What the **********, could be the catch ?<\/p>\n<p>10x for help<\/p>\n<p>p.s.<br \/>\nwould be anybody willing to review and &#8220;tune up&#8221; the batch?<\/p>\n","protected":false},"author":5,"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-6445","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\/6445","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\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/comments?post=6445"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=6445"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=6445"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=6445"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}