Prev: Passing Arguments
Next: write line to ftp.exe shell ??
From: Aster on 5 Jan 2010 12:50 I want make volume defragging task a bit more handy, with vbscript or batch file (one volume, windows 98). To make the defrag work correctly, I firstly need set up a Clean boot configuration with MSCONFIG (select "Selective startup" and uncheck all boxes), then restart PC in Safe mode, and then run defrag command. How to implement these tasks into vbscript or batch file? Aster
From: Pegasus [MVP] on 5 Jan 2010 13:54 "Aster" <Aster(a)nospam.microsoft.news> said this in news item news:ODUVE#ijKHA.4048(a)TK2MSFTNGP06.phx.gbl... > I want make volume defragging task a bit more handy, with vbscript or > batch file (one volume, windows 98). > To make the defrag work correctly, I firstly need set up a Clean boot > configuration with MSCONFIG (select "Selective startup" and uncheck all > boxes), then restart PC in Safe mode, and then run defrag command. How to > implement these tasks into vbscript or batch file? > > Aster 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.
From: mr_unreliable on 5 Jan 2010 16:37 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) ____________________________________________________________ You got questions? WE GOT ANSWERS!!! ..(but, no guarantee the answers will be applicable to the questions)
From: Pegasus [MVP] on 5 Jan 2010 17:30 "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.
From: Aster on 6 Jan 2010 07:00
"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 ? |