home bbs files messages ]

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

   alt.msdos.batch      Fun with MS-DOS batch files      42,547 messages   

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

   Message 41,797 of 42,547   
   Herbert Kleebauer to Herbert Kleebauer   
   Re: rename files with prefix   
   06 Dec 19 00:22:19   
   
   From: klee@unibwm.de   
      
   On 05.12.2019 23:01, Herbert Kleebauer wrote:   
   > On 05.12.2019 21:14, Lori Fairhead wrote:   
   >   
   >>> for /f "tokens=*" %i in ('dir /b') do ren "%i" "VIETNAM-%i"   
   >   
   >> I used this version this time and it left a few files unchanged   
   >> Of course ATM I was copying South Korean pop music videos and some   
   >> have a lot of funny characters in them   
   >>   
   >> Kei(김지연) ‘I Go’ Official MV   
   >> 러블리즈(Lovelyz) “여름 한 조각(Wag-zak)” Official MV   
   >> 러블리즈(Lovelyz) “찾아가세요” Official MV   
   >> 베이비소울(BabySoul) “조각달” Official MV   
   >>   
   >> these four out of 58 got an error instead of renaming using your code   
      
   Did some testing and it seems the problem is the 'dir' output   
   for unicode file names because your version   
      
   FOR %i IN (*.MP4) DO REN "%i" "VIETNAM-%i"   
      
   works.   
      
   --- 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