devil270975 Posted August 19, 2003 Share Posted August 19, 2003 I was just wondering, is it safe to remove all the log and text files in the %systemroot% folder cus if it is and the reason no-one does it is because takes too long to write all the file names out then here is a solutionCLS@ECHO OFFECHO.ECHO Removing all text files and logs from the windows directoryECHO Please wait...for %%t in (txt) do del "%systemroot%\*.txt"for %%t in (log) do del "%systemroot%\*.log"ECHO.please tell me it is safe, i cant think of a reason why it wouldnt beLee... Link to comment Share on other sites More sharing options...
Aaron Posted August 19, 2003 Share Posted August 19, 2003 Can't see why not, log and txt files are not crucial to an Operating System's functionality. Some will get recreated depending on what you install/change to the OS at a later time. Link to comment Share on other sites More sharing options...
snooz Posted August 19, 2003 Share Posted August 19, 2003 deltree /y C:\windows\*.logdeltree /y C:\windows\debug\*.logdeltree /y C:\windows\debug\usermode\*.logdeltree /y C:\windows\pchealth\helpctr\logs\*.logdeltree /y C:\windows\repair\*.logdeltree /y C:\windows\security\*.logdeltree /y C:\windows\security\logs\*.logdeltree /y C:\windows\system32\*.logdeltree /y C:\windows\system32\catroot2\*.logdeltree /y C:\windows\system32\msdtc\*.logdeltree /y C:\windows\system32\msdtc\trace\*.logdeltree /y C:\windows\system32\wbem\logs\*.logI have cleaned up the log files with no side effects here are the commands above. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now