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 66,991 of 68,980   
   Docfxit to All   
   Re: Trying to delete all files with cert   
   30 Jul 17 11:30:32   
   
   From: docfxit@gmail.com   
      
   On Sunday, July 30, 2017 at 7:14:07 AM UTC-7, JJ wrote:   
   > On Sat, 29 Jul 2017 18:19:50 -0700 (PDT), Docfxit wrote:   
   > > I would like to delete all *.log files from the root of C: through all   
   folders.   
   > > This code isn't deleting all *.log files.   
   > >    
   > > del deleteTmp.bat   
   > >     >  file.txt echo/*.tmp   
   > >     >> file.txt echo/*._mp   
   > >     >> file.txt echo/*.log   
   > >    
   > > for /f "delims=" %%a in (file.txt) do >>DeleteTmp.bat echo del /F /S   
   "c:\%%a >> Delete.log"   
   > > Call DeleteTmp.bat   
   > > cmd   
   > >    
   > > It also isn't writing out the Delete.log file.   
   > >    
   > > Can anyone help me figure out why?   
   > >    
   > > Thanks,   
   > >    
   > > Docfxit   
   >    
   > Any file which can't be deleted means that it's being used by an application   
   > (i.e. it's still opened for reading and/or writing).   
   >    
   > There's a tool to close opened file by other applications, and it can be   
   > automated. But those applications would still think that the files is still   
   > opened, and they may crash or freeze because of that.   
      
   Thanks for the reply...   
      
   I have 51 files and 4 directories.  I don't think all of them are opened   
   files.  Although I don't know for sure.  I will try to find the program that   
   will unlock files.  I currently use a program called Unlocker but I don't   
   think I can use that in a    
   batch file.   
      
   Do you have any idea why It also isn't writing out the Delete.log file?   
      
   Thanks,   
   Docfxit   
      
   --- 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