kyuuzo Posted October 30, 2004 Share Posted October 30, 2004 I tried it but it didn't seem to work. I'd like to use the windows defrag program.Anyone have any ideas? Link to comment Share on other sites More sharing options...
kurt476 Posted October 30, 2004 Share Posted October 30, 2004 is there like another line i can add in winnt.sif after the last line of:[GUIRunOnce]%systemdrive%\install\start.cmdafter that i would like a defrage or setup Scheduled Tasks so defrags automanily after all the installation is done is there away to do it one or the other got to do it? Link to comment Share on other sites More sharing options...
Alanoll Posted October 30, 2004 Share Posted October 30, 2004 is there like another line i can add in winnt.sif after the last line of:[GUIRunOnce]%systemdrive%\install\start.cmdafter that i would like a defrage or setup Scheduled Tasks so defrags automanily after all the installation is done is there away to do it one or the other got to do it?Read the title,Defrag in RunOnceExWhere in there does it say GUIRunOnce?@kyuuzoWhat command are you attempting to use? Link to comment Share on other sites More sharing options...
kurt476 Posted October 30, 2004 Share Posted October 30, 2004 i don't know what command i shuld use too start the defrage after windows reboots after the the start.cmd and after clenaup deletes the files is there a a start command or something to start the defraging? Link to comment Share on other sites More sharing options...
gunsmokingman Posted October 30, 2004 Share Posted October 30, 2004 This Is a script from Doug Knox web site it to defrag your HD Link to comment Share on other sites More sharing options...
kyuuzo Posted October 30, 2004 Author Share Posted October 30, 2004 I tried it again and it seemed to work ok with this...REG ADD %KEY%\003 /VE /D "Defraging System Drive" /fREG ADD %KEY%\003 /V 1 /D "%windir%\system32\defrag.exe %systemdrive%" /f Link to comment Share on other sites More sharing options...
kurt476 Posted October 31, 2004 Share Posted October 31, 2004 ? can i get the code to defrag the HDD plzz? i tryed the code what kyuuzo post this code:REG ADD %KEY%\003 /VE /D "Defraging System Drive" /fREG ADD %KEY%\003 /V 1 /D "%windir%\system32\defrag.exe %systemdrive%" /foh by the way i use start /wait %system%\application\application.exe /s because it is simlpe for mefor any application that is just and example you thing you can help with the coded for this with the secript that gunsmokingman posted? Link to comment Share on other sites More sharing options...
Tsunami Posted October 31, 2004 Share Posted October 31, 2004 Is it so difficult to open up a cmd window and type "defrag /?"...defrag <volume> [-a][-f] [-v] [-?] volume drive letter or mount point (d: or d:\vol\mountpoint) -a Analyze only -f Force defragmentation, even if free space is low -v Verbose output -? Display this help textSo I guess the best command would be:REG ADD %KEY%\003 /VE /D "Defragging System Drive" /FREG ADD %KEY%\003 /V 1 /D "DEFRAG %SystemDrive% -F" /F Link to comment Share on other sites More sharing options...
MHz Posted October 31, 2004 Share Posted October 31, 2004 You could also use schtasks. Type at a cmd box schtasks /? to get available syntax. The Help and support centre in your startmenu will give some better info.You could use this to schedule defrag to run once after setup. Link to comment Share on other sites More sharing options...
kurt476 Posted October 31, 2004 Share Posted October 31, 2004 thanx Tsunami for the code it worked Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now