Hi all,

I am developing an application that runs the window tools like Defragmentation. how can i run the defragmentation. i tried the following code, but i was not able to make it work, i am getting an error "File not found".

Code:
private sub cmdDfrg_Click()

dim val

val=Shell ("defrg.msc",1)

end sub.