{"id":10034,"date":"2021-12-05T02:40:14","date_gmt":"2021-12-05T02:40:14","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=10034"},"modified":"2021-12-05T02:43:37","modified_gmt":"2021-12-05T02:43:37","slug":"solved-how-to-make-a-filename-uppercase-in-batch","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/programming\/how-to-make-a-filename-uppercase-in-batch\/25923.html","title":{"rendered":"Solved How To Make a Filename Uppercase In Batch"},"content":{"rendered":"<p>I&#8217;ve been searching the internet for code to change FILENAMES to all UpperCase letters.<\/p>\n<p>I&#8217;ve found a few lines of code like the following:<br \/>\nFOR \/F &#8220;tokens=2 delims=-&#8221; %%A IN (&#8216;FIND &#8220;&#8221; &#8220;%~1&#8221; 2\u02c6&gt;\u02c6&amp;1&#8217;) DO SET UpCaseText=%%A<\/p>\n<p>but I only get error messages.<\/p>\n<p>I found the following for making everything lowercase, but don&#8217;t seem to be able to go the other direction:<br \/>\nFOR %%B IN (&#8220;%~1&#8221;) DO (<br \/>\nFOR \/F &#8220;delims=~&#8221; %%A IN (&#8216;ECHO %%B\u02c6&gt; ~%%B \u02c6&amp; DIR \/L \/B ~%%B&#8217;) DO (<br \/>\nSET LoCaseText=%%A<br \/>\nDEL \/Q ~%%B<br \/>\n)<br \/>\n)<\/p>\n<p>I want to change every PDF in a folder to uppercase, but can only use something that windows comes ready for (such as VB or Command Line\/Batch files).<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"iawp_total_views":3},"question-category":[55],"question_tags":[],"class_list":["post-10034","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\/10034","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=10034"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=10034"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=10034"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=10034"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}