{"id":4424,"date":"2021-11-10T11:07:45","date_gmt":"2021-11-10T11:07:45","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=4424"},"modified":"2021-11-10T11:10:14","modified_gmt":"2021-11-10T11:10:14","slug":"batch-menu-with-buttons","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/programming\/batch-menu-with-buttons\/25760.html","title":{"rendered":"Batch Menu With Buttons"},"content":{"rendered":"<p>&lt;td&gt;&lt;p&gt;&lt;\/p&gt;I want to create a program with menu.&lt;br&gt;4 exmple:&lt;br&gt;===========================================================&lt;br&gt;What do you want to do?&lt;br&gt;1. Shutdown PC&lt;br&gt;2. Restart PC&lt;br&gt;3. Format C:\\&lt;br&gt;4. Format D:\\&lt;br&gt;5. Exit&lt;br&gt;===========================================================&lt;br&gt;The normal menu script 4 this would be something like that:&lt;br&gt;@echo off&lt;br&gt;echo What do you want to do?&lt;br&gt;echo 1. Shutdown PC&lt;br&gt;echo 2. Restart PC&lt;br&gt;echo 3. Format C:\\&lt;br&gt;echo 4. Format D:\\&lt;br&gt;echo 5. Exit&lt;br&gt;set \/p normalmenu=&lt;br&gt;if %normalmenu%==1 goto 1&lt;br&gt;if %normalmenu%==2 goto 2&lt;br&gt;if %normalmenu%==3 goto 3&lt;br&gt;if %normalmenu%==4 goto 4&lt;br&gt;if %normalmenu%==5 exit&lt;br&gt;:1&lt;br&gt;shutdown -s -t 1&lt;br&gt;exit&lt;br&gt;:2&lt;br&gt;shutdown -r -t 1&lt;br&gt;exit&lt;br&gt;:3&lt;br&gt;format &#8220;C:\\&#8221;&lt;br&gt;exit&lt;br&gt;:4&lt;br&gt;format &#8220;D:\\&#8221;&lt;br&gt;exit&lt;p&gt;&lt;\/p&gt;&lt;p&gt;&lt;br&gt;BUT I need that the menu for this program would be like, pressing with the mouse on the &#8220;restart PC&#8221; and PC will restart&#8230;&lt;br&gt;Something like that: &lt;a href=&#8221;https:\/\/web.archive.org\/web\/20120526055324\/http:\/\/www.youtube.com\/watch?v=d-gzQdUX_lg&#8221; target=&#8221;_blank&#8221;&gt;http:\/\/www.youtube.com\/watch?v=d-gz&#8230;&lt;\/a&gt;&lt;br&gt;BUT MORE SIMPLE &lt;\/p&gt;&lt;p&gt;I am using windows 7 32bit&lt;br&gt;Dont konw if that&#8217;s possible in windows7&#8230;&lt;\/p&gt;&lt;p&gt;Thankyou for any kind of help&lt;br&gt;&lt;\/p&gt;&lt;\/td&gt;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"iawp_total_views":3},"question-category":[55],"question_tags":[],"class_list":["post-4424","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\/4424","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=4424"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=4424"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=4424"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=4424"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}