{"id":4655,"date":"2021-11-11T08:37:41","date_gmt":"2021-11-11T08:37:41","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=4655"},"modified":"2021-11-11T08:38:04","modified_gmt":"2021-11-11T08:38:04","slug":"need-to-auto-incriment-filename-when-saving","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/programming\/need-to-auto-incriment-filename-when-saving\/26493.html","title":{"rendered":"Need To Auto Incriment Filename When Saving."},"content":{"rendered":"<p>Good day,<\/p>\n<p>I hope you guys are able to help me with this.<\/p>\n<p>My script is as follows:<\/p>\n<p>&nbsp;<\/p>\n<p>@echo off<br \/>\nsetLocal EnableDelayedExpansion<\/p>\n<p>cd C:\\Decryptor<br \/>\nfor \/f &#8220;tokens=* delims= &#8221; %%a in (c:\\temp\\recordings.txt) do (encryptwave-w32r-1-1.exe -d &#8220;%%a&#8221; -o &#8220;C:\\recordings\\recording.wav&#8221;)<\/p>\n<p>What i need is for the file name to change each time it saves a new decripted recording.<br \/>\nright now it is just overwriting the recording.wav each time.<\/p>\n<p>I need it to incirment as follows:<\/p>\n<p>recording1.wav<br \/>\nrecording2.wav<br \/>\nrecording3.wav<br \/>\nrecording4.wav<br \/>\n&#8230;<\/p>\n<p>How can i do this?<\/p>\n<p>any help will be appreciated.<\/p>\n","protected":false},"author":5,"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-4655","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\/4655","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=4655"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=4655"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=4655"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=4655"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}