BoardBabe Posted November 19, 2005 Share Posted November 19, 2005 Seems theres a bunch of *.log files left after installation in %WinDir%, could all of these files be safely deleted at cleanup.cmd (I run cleanup after WPI), or is anyone needed or used later?Here's a list of .log files from %WinDir% right after install.0.logchipset.logcmsetacl.logCOM+.logcomsetup.logDtcInstall.logFaxSetup.logGEARInstall.logiis6.logimsins.logKB834707.logKB867282.logKB873333.logKB873339.logKB883939.logKB885250.logKB885835.logKB885836.logKB886185.logKB887742.logKB887797.logKB888113.logKB888302.logKB888656.logKB890046.logKB890047.logKB890175.logKB890859.logKB890923.logKB891122.logKB891781.logKB893066.logKB893086.logKB893756.logKB893803v2.logKB894391.logKB896358.logKB896422.logKB896423.logKB896424.logKB896428.logKB896688.logKB896727.logKB898461.logKB899587.logKB899588.logKB899589.logKB899591.logKB900725.logKB900930.logKB901017.logKB901214.logKB902344.logKB902400.logKB903235.logKB904706.logKB905414.logKB905749.logKB906569.logMedCtrOC.logmsgsocm.logmsmqinst.lognetfxocm.logntdtcsetup.logocgen.logocmsn.logoobeact.logregopt.logsessmgr.setup.logsetupact.logsetupapi.logsetuperr.logSetupWLD.logSti_Trace.logSynInst.logtabletoc.logtsoc.logwiadebug.logwiaservc.logWindowsUpdate.logwmsetup.log Link to comment Share on other sites More sharing options...
Crash&Burn Posted November 19, 2005 Share Posted November 19, 2005 It's certainly safe to remove them, but a better option IMO would be to archive them, rar or whatever your compression of choice is - a great reference for what was installed & done for hotfixes and apps. Link to comment Share on other sites More sharing options...
gunsmokingman Posted November 19, 2005 Share Posted November 19, 2005 Try this VBS File it will delete only the log files that are not protected.Those should be safe to delete.Dim Act, Fso, SDSet Fso = CreateObject("Scripting.FileSystemObject")Set Act = CreateObject("Wscript.Shell")SD = Act.ExpandEnvironmentStrings("%SystemDrive%")On Error Resume NextFso.DeleteFile(SD & "\Windows\*.Log") Link to comment Share on other sites More sharing options...
BoardBabe Posted November 19, 2005 Author Share Posted November 19, 2005 By protected you mean write protected?I was thinking more likefor /f "usebackq tokens=*" %%i in (`dir /b "%winDir%\*.log"`) do if %%i neq WindowsUpdate.log del /q "%WinDir%\%%i"Keeping the windows update log to see what's installed on MU/WU web, am I right? This would do the same as above vbs script I guess? Link to comment Share on other sites More sharing options...
natan770 Posted November 19, 2005 Share Posted November 19, 2005 Completely safe to delete them all. And .bak and .000 and .001 files too http://www.windowsdream.com Link to comment Share on other sites More sharing options...
gunsmokingman Posted November 19, 2005 Share Posted November 19, 2005 (edited) This is what I mean by protected file, the VBS file will not error or stop. Edited November 27, 2005 by gunsmokingman Link to comment Share on other sites More sharing options...
BoardBabe Posted November 19, 2005 Author Share Posted November 19, 2005 gunsmokingman: that's a good point! But im guessing there's a reason it's in use? And should maybe not be deleted? Link to comment Share on other sites More sharing options...
natan770 Posted November 20, 2005 Share Posted November 20, 2005 This is what I mean by protected file, the VBS file will not error or stop.The only reason why you got the message is that you tried to delete .tmp files, some of which were currently being used by Window, thus undeletable. Within a vbs or a .cmd, you don't have to care about success or failure in such deletions... remaining .tmp will be removed by the system itself anyway.Natanhttp://www.windowsdream.com 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