Connecting Tech Pros Worldwide Help | Site Map

Calling Windows Hard Disk Defragmenter in VB.Net

Newbie
 
Join Date: Mar 2008
Posts: 22
#1: Jan 30 '09
Can somebody tell me how to call Windows Hard Disk Defragmenter in VB.Net on Button Click. Any help is greatly appreciated.
Plater's Avatar
Moderator
 
Join Date: Apr 2007
Location: New England
Posts: 7,150
#2: Jan 30 '09

re: Calling Windows Hard Disk Defragmenter in VB.Net


Use the Process class to start an instance of dfrg.msc
That will launch the windows gui version of the defragger.

There is also defrag.exe which is a command line defragger
Reply