Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

defrag with a script

Status
Not open for further replies.

brlissab

Technical User
Oct 11, 2002
35
CH
HI is it possible to defrag drives with a script?
also another questions from a script newbie. Is it also possible to add remove client into tcp properties using a script?
thank you for your help.
 
we might use use

REM *** Defrag Harddrive
echo step 13 - Defragmentation of harddrives (depending on machine performance
echo and software configuration this can take several minutes)
echo * Defrag drive c:
rem %systemroot%\system32\defrag.exe c: -f > nul
echo * Defrag drive d:
rem %systemroot%\system32\defrag.exe d: -f > nul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top