home bbs files messages ]

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

   alt.msdos.batch.nt      Fun with Windows NT batch files      68,980 messages   

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

   Message 67,419 of 68,980   
   Zaidy036 to Harry Potter   
   Re: for(): filtering out non-directories   
   07 Jun 19 15:48:06   
   
   From: Zaidy036@air.isp.spam   
      
   Harry Potter  wrote:   
   > On Wednesday, May 8, 2019 at 7:06:33 AM UTC-4, Harry Potter wrote:   
   >> On Tuesday, May 7, 2019 at 8:43:45 PM UTC-4, Zaidy036 wrote:   
   >>> RD /S   includes files and folders   
   >>>   
   >> Thanks!  :)   
   >   
   > Now, I need to exclude all files that contain "Disk" in the filename.  How   
   do I do that?   
   >   
      
   One batch option would be to copy files "Disk" included to another   
   directory before "RD /S" then "RD" the new directory if empty. Another   
   would be "For" loop if name does NOT include "Disk" delete it. If Dir now   
   empty "RD" it.   
      
   --   
   Zaidy036   
      
   --- 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