_hunter Posted April 5, 2007 Posted April 5, 2007 Greetings...What are those files? Can I somehow move those files as I've moved *.evt from this folder?Best regards...
Vaidelotis Posted April 5, 2007 Posted April 5, 2007 Probably, some of these files can be moved and deletedC:\WINDOWS\system32\configThe config folder contains the Registry Hives used during bootup, and is the storage location for the System, Security, and Application log files viewed through Event Viewer.I delete every file in the config folder that Windows will allow me to. Windows will not allow you to delete of some files in the config folder. This is because these files represent the actual registry.All other files in the config folder can be deleted without any problems to your system.From Bold fortune's guide
_hunter Posted April 5, 2007 Author Posted April 5, 2007 and???how to move (that those files always appears in other folder) those *.log-files?
Vaidelotis Posted April 5, 2007 Posted April 5, 2007 (edited) Sorry, I think I don't follow you..log files in other folders usually are garbage. If everything is working as it should, you can safely move or delete those files.You can do this by hand or you can write a batch file, or you can write a program for that. Whichever way you like.If this is what you want to do, I'll write you a simple batch file.Rem Opening C: drive and then root dir of C: driveRem --------------------------------------------------------C:cd \Rem --------------------------------------------------------Rem creates temporary directory where we will move log filesRem --------------------------------------------------------md LogFilesRem --------------------------------------------------------Rem Opening Logfiles dirRem --------------------------------------------------------cd LogFilesRem --------------------------------------------------------Rem Within C:\Logfiles dir creates System32 dirRem --------------------------------------------------------md System32Rem --------------------------------------------------------Rem Again opening root dir of the C: driveRem --------------------------------------------------------cd \Rem --------------------------------------------------------Rem Opening Windows directoryRem --------------------------------------------------------cd %windir%Rem --------------------------------------------------------Rem Copying all log files from windows dir to C:\Logfiles dirRem After that deleting all .log files from windows dir Rem --------------------------------------------------------copy *.log C:\Logfiles\*.logdel *.logRem --------------------------------------------------------Rem Opening Windows\System32 directoryRem --------------------------------------------------------cd %windir%\System32Rem --------------------------------------------------------Rem Copying all log files from windows\System32 dir to C:\Logfiles\System32 dirRem After that deleting all .log files from windows\System32 dir Rem --------------------------------------------------------copy *.log C:\Logfiles\System32\*.logdel *.logRem --------------------------------------------------------Open notepad, paste this text, "File\Save as" and in File name enter (with quotes!): "Log.bat" Now you have a batch file that (when you execute it) will move all log files from Windows and Windows\System32 to C:\Logfiles and C:\Logfiles\System32Right click on this file (Log.bat) and select edit. Now you can change it to fit your needs. Google for more info. about batch files, there is plenty of it on the internet. Edited April 5, 2007 by Vaidelotis
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now