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,998 of 68,980    |
|    Docfxit to Todd Vargo    |
|    Re: Trying to delete all files with cert    |
|    01 Aug 17 09:07:58    |
      From: docfxit@gmail.com              On Sunday, July 30, 2017 at 9:22:52 PM UTC-7, Todd Vargo wrote:       > On 7/30/2017 3:42 PM, John Gray wrote:       > > On Sunday, 30 July 2017 02:19:51 UTC+1, 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       > >       > > What's wrong with       > > del c:\*.log /s       > > ?       > > The Del command doesn't give a log, anyway...       > >       >       > It does with /S switch. Try it.       >       > --       > Todd Vargo       > (Post questions to group only. Remove "z" to email personal messages)              This is working really great. Thank you very much.              del /F /S c:\*.tmp c:\*._mp c:\*.log > "%~f0"CleanTempDeletedFiles.txt 2>nul              The only thing that isn't the greatest is in the deletedfiles.txt file it's       showing the files that do get deleted saying they are deleted. The files that       are in use or have Accesses denied show the file name with no reason.              It would be nice to see "Not accessible" by the files that don't get deleted.              The delete cmd is working great.              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