home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.msdos.batch.nt      Fun with Windows NT batch files      68,980 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 67,642 of 68,980   
   Terry Pinnell to Terry Pinnell   
   Re: Change all extensions? SOLVED   
   10 Oct 20 10:02:39   
   
   From: me@somewhere.invalid   
      
   Terry Pinnell  wrote:   
      
   >I'm looking for a way to change all the extensions in a folder AND its   
   >subfolders. My batch skills have dropped over the decades from novice to   
   >almost non-existent so I'd much appreciate some help please.   
   >   
   >I do have the excellent tool Bulk Rename Utility but that applies   
   >filename changes at single folder level. My parent folder has scores of   
   >children (and quite a few grandchildren), so that would be tedious and   
   >time consuming.   
   >   
   >Specifically, I want all the *.ino files within say c:\docs\xyz to   
   >become *.txt.   
   >   
   >If it matters, I'm using Win 10 Pro.   
   >   
   >Terry, East Grinstead, UK   
      
   I'd still like to see a BAT solution for comparison, but meanwhile   
   further googling gave me this neat method at a command prompt, with the   
   parent directory selected:   
      
   for /R %x in (*.ino) do ren "%x" *.txt   
      
   Terry, East Grinstead, UK   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca