{"id":3038,"date":"2021-11-02T00:47:34","date_gmt":"2021-11-02T00:47:34","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=3038"},"modified":"2021-11-02T00:49:32","modified_gmt":"2021-11-02T00:49:32","slug":"how-to-increment-numbers-in-a-batch-file","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/programming\/how-to-increment-numbers-in-a-batch-file\/21917.html","title":{"rendered":"How To Increment Numbers In a Batch File"},"content":{"rendered":"<p>I am trying to create a batch file that will increment a build number.<br \/>\nFor instance, the batch file will read<br \/>\n&#8220;Version 1.2.xxx:&#8221;<br \/>\n(xxx will be the current build number)<br \/>\nAfter the batch file runs, it should increment the last 3 digits.<br \/>\nExample:<br \/>\nIf the batch file reads:<br \/>\nVersion 1.2.111<br \/>\nAfter it runs, it should read:<br \/>\nVersion 1.2.112<br \/>\nI can create a batch file that will search for an specific string but after it runs the first time I have to change the script again to math the string.<\/p>\n<p>I appreciate any help.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"iawp_total_views":2},"question-category":[55],"question_tags":[],"class_list":["post-3038","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\/3038","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=3038"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=3038"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=3038"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=3038"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}