{"id":223,"date":"2021-09-03T02:00:27","date_gmt":"2021-09-03T02:00:27","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/programming-how-do-i-load-batch-variables-from-a-file-28404-html"},"modified":"2021-09-03T02:58:14","modified_gmt":"2021-09-03T02:58:14","slug":"programming-how-do-i-load-batch-variables-from-a-file-28404-html","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/programming\/how-do-i-load-batch-variables-from-a-file\/28404.html","title":{"rendered":"[Solved] How Do i load batch variables from a file"},"content":{"rendered":"<p>Hey guys i was wondering how to load a variable from a file, anyone know?<br \/>\nthanks for any feedback<\/p>\n<p><span style=\"color: gray; font-size: small;\">Domo!<br \/>\n<\/span><\/p>\n<p><img decoding=\"async\" style=\"margin-top: 20px;\" src=\"http:\/\/static.computing.net\/img\/best_answer_medal.png\" alt=\"Best Answer\" align=\"right\" \/><\/p>\n<p>:: ===== script starts here ===============<br \/>\n::<br \/>\n:: chuey.bat 2012-09-14 15:37:53.32<br \/>\n@echo off &amp; setLocal enableDELAYedeXpansioN<\/p>\n<p>set N=<br \/>\nfor \/f &#8220;tokens=* delims= &#8221; %%a in (myfile) do (<br \/>\nset\/a N+=1<br \/>\nset V!N!=%%a<br \/>\n)<br \/>\nset V<br \/>\n::====== script ends here =================<\/p>\n<p><span style=\"color: blue;\"><br \/>\n====================================<br \/>\nLife is too important to be taken seriously.<\/span><\/p>\n<p>M2<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","template":"","meta":{"inline_featured_image":false,"iawp_total_views":50},"question-category":[55],"question_tags":[],"class_list":["post-223","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\/223","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=223"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=223"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=223"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}