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 68,005 of 68,980   
   Terry Pinnell to All   
   Bulk copy with changed extension   
   20 Feb 23 15:51:19   
   
   From: me@somewhere.invalid   
      
   I have several hundred text files with the extension '.ino'. On my Win   
   10 PC I can view them in any text editor. They are also accessible on my   
   iPad because they are in subfolders of my Dropbox folder. However they   
   cannot be viewed directly on the iPad. One of many frustrations I have   
   with either iOS or Dropbox - haven't quite pinned the culprit down in   
   this case.   
      
   Could some kind expert please suggest a batch file that would take a   
   parent folder (File Explorer) path as its input, and make identically   
   named copies of every .ino file in every subfolder of it, but with a   
   .txt extension, saving them in the same location.   
      
   So files like   
   C:\Users\terry\Dropbox\Electronics\Arduino\SKETCHES\My Sketches\MY   
   SKETCHES 2021-2022\DFR SD ORIG type\JUKEBOX\J26Sh9plus\J26Sh9plus.ino   
      
   would be accompanied by   
   C:\Users\terry\Dropbox\Electronics\Arduino\SKETCHES\My Sketches\MY   
   SKETCHES 2021-2022\DFR SD ORIG type\JUKEBOX\J26Sh9plus\J26Sh9plus.txt   
      
   If this was a one-off task I would tackle it within File Explorer. I did   
   so a year ago and it was tedious. But I will want to update it at   
   intervals, hence the need for some neat automation please.   
      
   Any help would be much appreciated.   
      
   --- 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