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,054 of 42,547   
   Todd Vargo to noway   
   Re: batch move folders using wildcards?   
   20 Dec 14 21:57:12   
   
   From: tlvargo@sbcglobal.netz   
      
   On 12/19/2014 1:46 PM, noway wrote:   
   > I can batch move files using wildcards. Like this:   
   > move aa*.* c:\files\a\aa   
   > but how can I move folders using wildcards?   
   > move aa* c:\folders\a\aa   
   > doesn't do the trick. Seems a basic thing to me, but I can't find a   
   > solution. Now I can't program; I can only adapt batch- and vbs-script.   
   >   
   > What I do now is copy folders called a to z and aa to zz (191 total)   
   > into the directory and manually move the folders aardvark to zebra into   
   > their folder aa to ze and all folders aa to az in the topfolder a, and   
   > so on...   
      
   for /f %%a in ('dir /ad /b aa*.*') do move %%a c:\files\a\aa   
      
   --   
   Todd Vargo   
   (Post questions to group only. Remove "z" to email personal messages)   
      
   --- 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