{"id":1320,"date":"2021-10-21T12:25:01","date_gmt":"2021-10-21T12:25:01","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=1320"},"modified":"2021-10-21T12:25:23","modified_gmt":"2021-10-21T12:25:23","slug":"user-name-and-password-in-batch-file","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/programming\/user-name-and-password-in-batch-file\/25115.html","title":{"rendered":"User Name and Password in Batch File"},"content":{"rendered":"<p>ok so i wrote this little script up so people would have to put in a username and password<\/p>\n<p>@echo off<br \/>\ntitle testing authentication<br \/>\ncolor 0A<br \/>\necho enter your username<br \/>\nset username=robert (i set the required name here)<br \/>\nset \/p username=<br \/>\necho now enter your password<br \/>\nset password=2550020 (and the required password here)<br \/>\nset \/p password=<br \/>\ngoto 1<br \/>\npause<\/p>\n<p>:1<br \/>\necho it works<br \/>\npause<\/p>\n<p>i went to test it and i thought it was working when a thought came to mind<\/p>\n<p>so i tested it and when i typed (blahblah) as the username when its supposed to be (robert)<br \/>\nand the password as (superblah) when its supposed to be (2550020)<br \/>\nmy problem is that it continues no matter what i put in, is there a way to make it NOT continue if the entered username and password dont match the ones i set.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"iawp_total_views":10},"question-category":[55],"question_tags":[],"class_list":["post-1320","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\/1320","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=1320"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=1320"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=1320"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=1320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}