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,062 of 42,547   
   guido_M to All   
   i can rename directory with variable nam   
   24 Dec 14 16:43:41   
   
   From: posta@privata.it   
      
   in file batch i'm write:   
      
   cls   
   echo first dir   
   set /p cart1=   
   echo second dir   
   set /p cart2=   
   echo third dir   
   set /p cart3=   
   md %cart1%   
   md %cart2%   
   md %cart3%   
   echo dir to rename? 1, 2 or 3?   
   set /p numero=   
   if numero equ 1 ren %cart1% prova   
   if numero equ 2 ren %cart2% prova   
   if numero equ 3 ren %cart3% prova   
      
      
   if entry cart1=alpha, cart2=beta, cart3=gamma,   
   i make 3 folder, alpha,beta and gamma.   
   if entry 2, i should rename beta in prova but do not rename the folder.   
      
   can you help me?   
   i'm italian, sorry for bad english XD   
      
   --- 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