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 40,861 of 42,547   
   Gleep to All   
   Re: moving all files and folders into a    
   17 Dec 13 21:54:38   
   
   From: erik.tank@gmail.com   
      
   Thanks for the response Michael... I just figured out my problem - I was using   
   /R instead of /L for findstr... after changing that - presto - it all started   
   working.  Your code looks way more simple than my own.  I wonder why I make   
   things more complex    
   than they need to be sometimes, but at least it was challenging and rewarding   
   now that it's completed and working.  Here's my code for anyone else looking   
   to do the same type of thing:   
      
   dir C:\dfs_shares\home\staff\%1/s/b | findstr /V /I /L "C:\dfs_s   
   ares\home\staff\%1\files C:\dfs_shares\home\staff\%1\cache C:\df   
   _shares\home\staff\%1\files-trashbin" >"C:\dfs_shares\home\staff\%1\@movelist"   
   for /f "tokens=*" %%a in (C:\dfs_shares\home\staff\%1\@movelist) do echo   
   "%%a">>"C:\dfs_shares\home\staff\%1\@movelist2"   
   mkdir C:\dfs_shares\home\staff\%1\files   
   for /f "tokens=*" %%f in (C:\dfs_shares\home\staff\%1\@movelist2) do move %%f   
   c:\dfs_shares\home\staff\%1\files\   
   move C:\dfs_shares\home\staff\%1\files\@movelist C:\dfs_shares\h   
   me\staff\%1\@movelist   
   move C:\dfs_shares\home\staff\%1\files\@movelist2 C:\dfs_shares\   
   ome\staff\%1\@movelist2   
      
   --- 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