jamesas Posted January 18, 2005 Share Posted January 18, 2005 hey guys what i have atm is a WPI and a batch file that runs after WPI is finished now is there anyway to make it detect if diskeeper is installed and defragment the system drive, which also means how do i make it do this from a batch file or is that not possible Link to comment Share on other sites More sharing options...
Astalavista Posted January 18, 2005 Share Posted January 18, 2005 this has already been discussed many times. Pls use the search function.http://www.msfn.org/board/index.php?showto...27547&hl=defrag Link to comment Share on other sites More sharing options...
jamesas Posted January 18, 2005 Author Share Posted January 18, 2005 ok guys i looked at the above post very good thread but i just found a very very easy way to run it from a batc file although it runs with windows still loaded, all you need to do is make a batch file with 'diskeeper %systemdrive%:'EG.@echo offTITLE Defragmenting Your %systemdrive% Drivediskeeper %systemdrive%:PS all it needs now is a way to check for diskeeper Link to comment Share on other sites More sharing options...
sixpack Posted January 18, 2005 Share Posted January 18, 2005 ok guys i looked at the above post very good thread but i just found a very very easy way to run it from a batc file although it runs with windows still loaded, all you need to do is make a batch file with 'diskeeper %systemdrive%:'EG.@echo offTITLE Defragmenting Your %systemdrive% Drivediskeeper %systemdrive%:PS all it needs now is a way to check for diskeeperand this works with v9 to? Link to comment Share on other sites More sharing options...
glent Posted January 18, 2005 Share Posted January 18, 2005 yep works fine thanks Link to comment Share on other sites More sharing options...
jamesas Posted January 18, 2005 Author Share Posted January 18, 2005 (edited) i designed it from the latest edition and ive also found a way to make it check for diskeeper I Have not yet tested this on a UA disk so im nto sure if that server not started error will pop up in UA disksInstall.cmd@echo offstart /wait %cdrom%\Applications\Diskeeper\setup.msi /qbcleanup.cmd@echo offIF EXIST "C:\Program Files\Executive Software\Diskeeper\Diskeeper.exe" (start /wait %systemdrive%\install\diskeeper.cmd) ELSE (shutdown.exe -r -f -t 5 -c "Windows 2003 will now restart, this will give enough time for the shortcuts to update and for the shell to fully load before its ready to restart!")diskeeper.cmd@echo offTITLE Defragmenting Your %systemdrive% Drive"C:\Program Files\Executive Software\Diskeeper\Diskeeper.exe" %systemdrive%:shutdown.exe -r -f -t 5 -c "Windows 2003 will now restart, this will give enough time for the shortcuts to update and for the shell to fully load before its ready to restart!"PSS. this is beeing run at the end of my UA disk so ive inlcuded all the extras i had Edited January 18, 2005 by jamesas Link to comment Share on other sites More sharing options...
sixpack Posted January 18, 2005 Share Posted January 18, 2005 i use the method Astalavista postedbut it doesend work with v9 only with v8error code is: cant contact to diskeeper service Link to comment Share on other sites More sharing options...
MCT Posted January 18, 2005 Share Posted January 18, 2005 is the service started? i dont use diskeeper, so i cant say ive tested it Link to comment Share on other sites More sharing options...
sixpack Posted January 18, 2005 Share Posted January 18, 2005 is the service started? i dont use diskeeper, so i cant say ive tested it OMG.. that's it i alway's did think the service is already running, but i'ts notjeez.. so simpel Link to comment Share on other sites More sharing options...
jamesas Posted January 18, 2005 Author Share Posted January 18, 2005 but doesnt the other way do it during boot which would mean the service wouldnt be started and i dont think can be Link to comment Share on other sites More sharing options...
sixpack Posted January 18, 2005 Share Posted January 18, 2005 but doesnt the other way do it during boot which would mean the service wouldnt be started and i dont think can befor what i use it works now Link to comment Share on other sites More sharing options...
jamesas Posted January 18, 2005 Author Share Posted January 18, 2005 but doesnt the other way do it during boot which would mean the service wouldnt be started and i dont think can befor what i use it works now which way are you talking about six pack and does it work properlly from a UA disk Link to comment Share on other sites More sharing options...
sixpack Posted January 18, 2005 Share Posted January 18, 2005 but doesnt the other way do it during boot which would mean the service wouldnt be started and i dont think can befor what i use it works now which way are you talking about six pack and does it work properlly from a UA disk read the topic Astalavista posted that is what i useand it defrag's boot and in first logon, the way i did it Link to comment Share on other sites More sharing options...
Astalavista Posted January 18, 2005 Share Posted January 18, 2005 @ jamesasi told u it works with version 9i just got back otherwise i would hv also posted the same thingMCT did.that is what i use. Link to comment Share on other sites More sharing options...
jamesas Posted January 18, 2005 Author Share Posted January 18, 2005 well this way works very simple and does what i want so .. go figure 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