{"id":12892,"date":"2021-12-10T07:34:55","date_gmt":"2021-12-10T07:34:55","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=12892"},"modified":"2021-12-10T07:35:56","modified_gmt":"2021-12-10T07:35:56","slug":"batch-file-executing-twice-what-is-the-issue","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/programming\/batch-file-executing-twicewhat-is-the-issue\/28356.html","title":{"rendered":"Batch File Executing Twice-What Is The Issue"},"content":{"rendered":"<p>Hello All,<br \/>\nthe below code will create a file in current folder with file name list-files_&lt;current_folder&gt;.txt<br \/>\nalong with the actual file, a file of same content is getting created with name list-files_.txt.<\/p>\n<p>what is the mistake &amp; how to avoid it???<\/p>\n<p>My code:<\/p>\n<p>Call :FOLDER %CD%<br \/>\n:FOLDER<br \/>\nset MyCurDir=%~n1<br \/>\nset MyFile=list-files_%MyCurDir%.txt<br \/>\ndir \/s\/b *.plmxml | find \/V &#8220;unstripped&#8221; &gt; %MyFile%<\/p>\n<p>Thanks a lot in Advance&#8230;.<\/p>\n<p>-Duddukuri<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"iawp_total_views":15},"question-category":[55],"question_tags":[],"class_list":["post-12892","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\/12892","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=12892"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=12892"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=12892"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=12892"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}