![]() |
![]() |
![]() |
|
|
#1 (permalink) |
|
Devils Cabana Boy
Join Date: Apr 2003
Location: Central Coast CA
|
defrag.exe
any one runnign win XP want to copy this file and get it to me, im running win 2k and the exe does not come on 2k
no no im am not an idiot and i know that i can defrag through other means, but i need the exe file so i can write a batch file to automaticly defrag all of my HD with out prompting, thanks for the help |
|
|
|
|
|
#3 (permalink) |
|
Crazy
Join Date: Aug 2003
Location: Reading, UK
|
In Win2k the Disk Defragmenter is part of the Microsoft Management Console. Here's a script which opens the disk defragmenter and sends commands to the window... Just save it as "something.vbs" and you can run it from a batch file...
set WshShell = CreateObject("WScript.Shell") WshShell.Run "dfrg.msc" WScript.Sleep 1000 While WshShell.AppActivate("Disk Defragmenter") = FALSE wscript.sleep 1000 Wend WshShell.AppActivate "Disk Defragmenter" WScript.Sleep 200 WshShell.SendKeys "%A" WScript.Sleep 200 WshShell.SendKeys "D" While WshShell.AppActivate("Defragmentation Complete") = FALSE wscript.sleep 5000 Wend WshShell.AppActivate "Defragmentation Complete" WScript.Sleep 200 Close Button WshShell.Sendkeys "{TAB}" Wscript.Sleep 500 WshShell.Sendkeys "{ENTER}" Wscript.Sleep 500 WshShell.Sendkeys "%{F4}" |
|
|
|
|
|
#4 (permalink) |
|
Psycho
Join Date: May 2003
|
Go to
http://www.freedownloadscenter.com/U...Diskeeper.html It's a much better utility than the one that comes with windows, it actually works to stop defragmentation from happening in the first place. The new version costs around $30, but this one is still free.
__________________
"Empirically observed covariation is a necessary but not sufficient condition for causality" - Edward Tufte |
|
|
|
|
|
#5 (permalink) |
|
Devils Cabana Boy
Join Date: Apr 2003
Location: Central Coast CA
|
thanks for all the help
oh and i was wrong defrag.exe will not run on win2k
__________________
Donate Blood! "Love is not finding the perfect person, but learning to see an imperfect person perfectly." -Sam Keen Last edited by Dilbert1234567; 10-21-2003 at 03:58 PM. |
|
|
|
![]() |
| Bookmarks |
| Tags |
| defragexe |
| Thread Tools | |
|
|