{"id":14196,"date":"2021-12-14T11:19:22","date_gmt":"2021-12-14T11:19:22","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=14196"},"modified":"2021-12-14T11:20:09","modified_gmt":"2021-12-14T11:20:09","slug":"questions-and-answers-in-batch-files","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/programming\/questions-and-answers-in-batch-files\/20604.html","title":{"rendered":"Questions And Answers In Batch Files"},"content":{"rendered":"<p>Hi!<br \/>\nI am a newbie in bach programming, and I&#8217;m having some truble programming questions and answers into a batch file.<\/p>\n<p>My platform is a 486 with ms-dos 4.01<\/p>\n<p>Example:<\/p>\n<p>@echo off<br \/>\ncls<br \/>\n:quest<br \/>\necho.<br \/>\necho.<br \/>\necho What is the name of our country?<br \/>\necho (Type your answer and press enter.)<br \/>\nif &#8220;usa&#8221; goto correct<br \/>\nif &#8220;unated states of america&#8221; goto correct<br \/>\nif error\\incorrect goto quest<br \/>\n:correct<br \/>\ncls<br \/>\necho Congratulations! You won!<br \/>\ngoto end<br \/>\n:end<\/p>\n<p>eh.. wel, my knowledge is limited.<br \/>\nI do however hope to be filled in on the &#8220;need to know&#8221; in order to make this batch work! \ud83d\ude42 thanks!<br \/>\nChristian P., norway.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"iawp_total_views":1593},"question-category":[55],"question_tags":[],"class_list":["post-14196","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\/14196","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=14196"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=14196"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=14196"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=14196"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}