Quatermass
-
Posts
5 -
Joined
-
Last visited
Posts posted by Quatermass
-
-
It does do some quick error checking with ChkDsk to insure there aren't any errors.
Are you sure about this? Because I don't believe it does (I can't see how it would be able to do this either) and can't find any reference to it on the Sysinternal forum.
-
The best way to defrag the registry is to download the free pagedefrag program by Microsoft (used to be owned by sysinternals but they made so many great free IT tools that Microsoft bought them). It's a nice simply IT tool and doesn't need to be installed. You just put it in a place on your c: drive where it can permanently live and set the options for the program to get to work when you next reboot.
I would suggest any one wishing to do a defrag or registry clean of any nature that they ensure they have a fault free hard drive first.
Open the command prompt and do a cmd <return> followed by CHKDSK /F C:
Then press Y at the prompts.
Then reboot and see your machine check and repair the hard drive filing system so its in top shape.
When you first run pagedefrag it may take a while to defrag your large pagefile if its heavily fragmented. But after that its like ~4 secs per boot.
I run pagedefrag on over 20 Windows PCs for over 5 years now. Like I said, it's free and used by IT professionals everywhere.
Get it and more details here:
http://technet.microsoft.com/en-us/magazine/cc137806.aspx
Here is what Wikipedia has to say about it:
-
Hello,
1) Why you don't add a option when defragmenting's complete to Hibernate/Stand By/Turn Off. It will be useful to users with 500GB or more.
2) I have 2 hard discs, but i cant defragment, both in same time. Defragmenting both in same time will be useful too.
3) Option which allow program to defragment all partitions.
- Martin.
Thanks!
I do that sort of thing with the free utils CONTIG and PSSHUTDOWN .
I run a batch file in the scheduler and it just does it at night.
3 line script, couldn't be easier.
defragment.bat
start c:\utils\contig -s c:\*.*start /WAIT c:\utils\contig -s d:\*.*
c:\utils\psshutdown -f -k -t 10 -c -m "Shutting down. Defrag complete"
Contig:
http://technet.microsoft.com/en-us/sysinte...s/bb897428.aspx
psshutdown
http://technet.microsoft.com/en-us/sysinte...s/bb897541.aspx
Put the 3 files in a directory and run the .bat file
Alternatively run a vbs script.
defrag_xp.vbs
onst LogFile = "C:\Defrag.log"Const DriveTypeRemovable = 1
Const DriveTypeFixed = 2
Const DriveTypeNetwork = 3
Const DriveTypeCDROM = 4
Const DriveTypeRAMDisk = 5
Set FSO = CreateObject("Scripting.FileSystemObject")
Set Drives = FSO.Drives
For each Drive in Drives
if Drive.DriveType = 2 then
RunCmd Drive
end if
Next
Sub RunCmd(DriveString)
Set WshShell = WScript.CreateObject("WScript.Shell")
RunString = "%comspec% /c echo " & WeekDayName(WeekDay(Now), True) & " " & Now & " " & DriveString
Return = WshShell.Run(RunString & " >> " & LogFile & " 2>&1", 0, TRUE)
RunString = "%comspec% /c %WINDIR%\System32\Defrag.exe " & DriveString & " -f"
Return = WshShell.Run(RunString & " >> " & LogFile & " 2>&1", 0, TRUE)
Set WshShell = Nothing
End Sub
This uses the builtin XP defrag tool running in the background.
If I was to use it, I'd do.
defragment.bat
start /WAIT "Defrag my drives" /Dc:\utils\ /MIN /LOW defrag_xp.vbsc:\utils\psshutdown -f -k -t 10 -c -m "Shutting down. Defrag complete"
It runs totally invisibly at low priority. Alter /LOW to /HIGH or /REALTIME if you're in a hurry.
-
Thanks Piriform for an interesting tool.
As a IT Administrator I enjoy looking at new tools.
I've used Config for years and your tool looks like a very nice UI version of that. ;-)
Please keep it clean and simple, there are lots of more complex tools out there.
Here is a few suggestions I have:
When I select a file and click on Analyse, can you make it just analyse that file?
At the moment it does a 100% Analyse.
Do you plan to add command line options?
If you are, I'd like to see an cmd line option for the program to analyse, then only defragment X number of the most fragmented files. A kind of Top 20 if you get my drift? :-)
That would make it quick and covers most badly affected systems.
I'd then run it via the Scheduler.
Perhaps an option to look inside the "c:\System Volume Information", "c:\Windows\" folders first and defragment those.
I agree that your program shouldn't do a registry defrag as other tools like SysInternals PageDefrag already do this very satisfactory.
I look forward to seeing how it develops. :-)
Is this True?
in CCleaner
Posted
Ah right I understand where you're coming from now. When the PC boots up, CHKDSK* does a 'dirty' check. It basically checks a tiny flag on the drive. This takes mere milliseconds.
Each time you boot up and run Windows, the OS flags the drive as dirty. When you shutdown cleanly it marks the drive as clean.
Therefore, in theory, if your computer suffers a major crash the system will boot up as 'dirty' and so CHKDSK will do a scan. Needless to say it rarely works...
So everytime you boot up if it's dirty, it does a CHKDSK scan, if not the next program runs in the autorun registy entry. Which in this case is PageDefrag.
Check out the Chkntfs.exe program in Windows XP and above. This allows you to set or clear the Dirty flag.
Every month I run a simply one line batch file via the Scheduler.
ECHO Y|CHKDSK c: /f
This forces a dirty flag on the drive.
If everyone did a dirty check once a month, their computer would work better....
*Technically CHKDSK isn't involved at all, as the Autochk program checks the dirty flag and runs CHKDSK if it is set.