Go Back   TechArena Community > Software > Operating Systems
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 06-07-2009
Member
 
Join Date: May 2009
Posts: 60
How to use Defrag.exe tool to defragment a hard disk on a Windows server 2008

I have just upgraded my workstation to Windows Server 2008 Standard x64, this is to satisfy the requirement of server level configuration, and I've noticed that the availability of the command line defrag.exe. So i think i need to use the defragmentation tool Defrag.exe and to go with this i need to have your suggestion in this matter.
Reply With Quote
  #2  
Old 06-07-2009
Member
 
Join Date: Apr 2008
Posts: 3,291
Re: How to use Defrag.exe tool to defragment a hard disk on a Windows server 2008

You may ofcourse use the Defrag.exe for your requirement as it does not harm your data if you are sure about it, before you should start with your defragmentation you just need to keep some DOS command with you so that you need to stuck anywhere.

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 text
Reply With Quote
  #3  
Old 06-07-2009
Member
 
Join Date: Nov 2005
Posts: 3,023
Re: How to use Defrag.exe tool to defragment a hard disk on a Windows server 2008

for this issue you need to download the hotfix that is available from Microsoft. However, this hotfix is intended to correct only the problem that is related to Defrag.exe. Apply this hotfix only to systems that are experiencing this specific problem. or else you may get the hotfix file anywhere fro the Internet.
Reply With Quote
  #4  
Old 06-07-2009
Member
 
Join Date: Apr 2008
Posts: 3,518
Re: How to use Defrag.exe tool to defragment a hard disk on a Windows server 2008

You may also use the .bat file, which will run a piece of code for you, You will also need to open the Windows command shell (cmd.exe). The command shell will help you nail the syntax of the operation.
  • Go to srart, run cmd, In the command prompt window, enter the following:
    Quote:
    C:> defrag.exe /?
    The help window will get open for defrag.exe, and there it would show the syntax you need to run the application and any optional switches.
  • To keep it simple and to restrict the defrag operation to one drive, you need to enter the syntax for our batch file into the text editor as follows:
    Quote:
    Defrag.exe c: -f
  • Once you have done this Save that text file with a name and the .bat file extension.
  • Now from there you need to select all files in the file types drop down.
Reply With Quote
Reply

  TechArena Community > Software > Operating Systems
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to use Defrag.exe tool to defragment a hard disk on a Windows server 2008"
Thread Thread Starter Forum Replies Last Post
Configuring Disk Mirroring for Windows Server 2008 R2 Steadfast Operating Systems 2 02-11-2010 01:37 PM
Windows 7 defrag tool enough ? FFCookie Operating Systems 8 11-09-2010 09:57 AM
SmartDefrag cannot defrag my Hard disk Calebh Windows Software 5 17-03-2010 07:50 PM
Windows 2008 server - disk reserved Gilbert Windows Server Help 6 03-04-2009 08:16 PM
Defragment the hard disk kex Guides & Tutorials 0 29-01-2009 09:00 AM


All times are GMT +5.5. The time now is 07:05 AM.