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,799 of 42,547   
   Lori Fairhead to Herbert Kleebauer   
   Re: rename files with prefix   
   05 Dec 19 12:14:40   
   
   From: lorif32768@gmail.com   
      
   On Monday, November 18, 2019 at 7:08:25 PM UTC, Herbert Kleebauer wrote:   
   > On 18.11.2019 18:29, Lori Fairhead wrote:   
   >    
   > >> At the command promt:   
   > >>    
   > >> for /f  %i in ('dir /b') do ren "%i" "VIETNAM-%i"   
   > >>    
   > >> in a batch file:   
   > >>    
   > >> for /f  %%i in ('dir /b') do ren "%%i" "VIETNAM-%%i"   
   > >    
   > > This didn't work properly; the FOR loop only put the first word   
   > > of the file name into the REN %i   
   >    
   > Because I never, never use spaces in file names I also don't   
   > test it (but at least I added the " which are also only necessary   
   > if there are spaces in the file name):   
   >    
   > for /f "tokens=*" %i in ('dir /b') do ren "%i" "VIETNAM-%i"   
   >    
   >   
      
   Hello there,   
      
   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   
      
   You still on-line? I posted another message here usually you   
   respond pretty fast, on holiday ?! We should exchange e-mail addresses   
   at some point BTW if we want to talk off-topic then it would be   
   good although this group seems unfortunately pretty low in activity   
   right now..... not exactly the heyday of MSDOS batch ccan we change   
   that or is MicroWaft ruining it by always changing the ground underneath   
   our feet ?!   
      
   byefornow   
   Lori F   
       
      
   --- 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