{"id":10931,"date":"2021-12-06T22:03:04","date_gmt":"2021-12-06T22:03:04","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=10931"},"modified":"2021-12-06T22:04:40","modified_gmt":"2021-12-06T22:04:40","slug":"piping-contents-of-serial-number-into-variable","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/programming\/piping-contents-of-serial-number-into-variabl\/24275.html","title":{"rendered":"Piping Contents Of Serial Number Into Variable"},"content":{"rendered":"<p>Hello,<br \/>\nI am trying to pipe the contents of :<br \/>\nwmic bios get serialnumber<br \/>\nand store it into a variable called %SERIAL%.<br \/>\nI&#8217;ve tried multiple variations of :<br \/>\nSET SERIAL | wmic bios get serialnumber and<br \/>\nSET SERIAL &gt; wmic bios get serialnumber<br \/>\nbut have not been able to make it work.<br \/>\nThe final output of what I want is a file called C:\\Temp\\%SERIAL%.txt<br \/>\nwith contents of the %MAC_ADDRESS%.<br \/>\nthanks,<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"iawp_total_views":8},"question-category":[55],"question_tags":[],"class_list":["post-10931","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\/10931","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=10931"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=10931"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=10931"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=10931"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}