Prev: Passing Arguments
Next: write line to ftp.exe shell ??
From: Pegasus [MVP] on 6 Jan 2010 12:19 "Aster" <Aster(a)nospam.microsoft.news> said this in news item news:ekKCafsjKHA.5524(a)TK2MSFTNGP06.phx.gbl... > > "Pegasus [MVP]" <news(a)microsoft.com> wrote in message > news:%23LTJxaljKHA.2780(a)TK2MSFTNGP05.phx.gbl... >> >> >> "mr_unreliable" <kindlyReplyToNewsgroup(a)notmail.com> said this in news >> item news:OsC4W6kjKHA.1648(a)TK2MSFTNGP05.phx.gbl... >>> Pegasus [MVP] wrote: >>>> I suggest you ask in a Win9x newsgroup how to defrag a disk with a >>>> console command. When you know the command then someone in this >>>> scripting group can tell you how to embed it in a script file. >>> >>> the defrag command on win98 is: >>> >>> C:\WINDOWS\DEFRAG.EXE >>> >>> >>> cheers, jw (a win98 holdout) >> >> Win98 holdout? Time warp? >> >> To the OP: This is really a Win98 OS question, not a scripting question. >> However, since I was naive enough to get involved, here are some >> suggestions. Write two batch files that perform the following tasks: >> >> File a) >> - Delete config.sys, autoexec.bat, system.ini, win.ini and the Startup >> folder. >> - Run msconfig.exe >> >> File b) >> - Restore config.sys, autoexec.bat, system.ini, win.ini and the Startup >> folder from a backup folder that you establish manually right at the >> beginning of this exercise. >> >> Invoke File a) for the defragging run and File b) after finishing the >> defrag operation. >> >> Note also that defragging your disk frequently may give you a warm >> feeling deep inside but it will have no measurable effect on your PC's >> performance. If you think otherwise then some tests with a stop watch >> might be an eye opener. > --------------------- > > > One note: according to microsoft, the volume must have at least 15 percent > free space for Defrag to completely and adequately defragment it. Defrag > uses > this space as a sorting area for file fragments. If a volume has less than > 15 percent free space, Defrag only partially defragments it. > > So, if my 20Gb hard drive has only 1.53Gb free space and I have performed > defrag, my volume has been defragmented only partially ? > This is another question that has nothing whatsoever to do with scripting. Please post it in a Win9x newsgroup. |