{"id":3520,"date":"2021-11-04T11:42:02","date_gmt":"2021-11-04T11:42:02","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=3520"},"modified":"2021-11-04T11:43:26","modified_gmt":"2021-11-04T11:43:26","slug":"solved-batch-file-problem-goto-was-unexpected-at-this-time","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/programming\/batch-file-problem-goto-was-unexpected-at-this-time\/29468.html","title":{"rendered":"Solved Batch File Problem &#8211; Goto Was Unexpected At This Time"},"content":{"rendered":"<p>Hi all, I have a goto problem, and an If Problem. I edited the batch, So It wont be open source.<br \/>\nPlease help.<br \/>\nBATCH:<br \/>\n@echo off<br \/>\ncd XXX<br \/>\nIf XXX Exist (<br \/>\ngoto Uinstall<br \/>\n)<br \/>\nmkdir XXX<br \/>\ncd XXX<br \/>\nECHO INSTALLING! PlEASE WAIT!<br \/>\ncopy XXX<br \/>\necho Please wait, Im creating a Short cut.<br \/>\ncd..<br \/>\ncd..<br \/>\ncd..<br \/>\ncd..<br \/>\ncd XXX<br \/>\nEcho &#8220;XXX&#8221; &gt; Shortcut to XXX<br \/>\necho thank you,<br \/>\nEcho this batch installer was created by Adam.<br \/>\necho Please visit my site at XXX<br \/>\necho press any key to exit<br \/>\npause<\/p>\n<p>:Uninstall<br \/>\necho please choose the number that is located beside the option.<\/p>\n<p>echo 1 &#8211; Uninstall<br \/>\necho 2 &#8211; Fix<br \/>\necho 3 &#8211; Reinstall<br \/>\necho 4 &#8211; quit<\/p>\n<p>set \/p opt=:<br \/>\nif %opt%== 1 goto Kill<br \/>\nif %opt%== 2 goto Fix<br \/>\nif %opt%== 3 goto ri<br \/>\nif %opt%== 4 exit<\/p>\n<p>:kill<br \/>\nEcho ARE YOU SURE YOU WANT TO DO THIS?<br \/>\nset \/p opt=Y\/N:<br \/>\nif %opt%== N exit<br \/>\nif %opt%==else goto !<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"iawp_total_views":20},"question-category":[55],"question_tags":[],"class_list":["post-3520","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\/3520","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=3520"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=3520"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=3520"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=3520"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}