I am writing a piece of code in c#.
I am looking for a way to find if a particular file on a volume is fragmented or not.
i am not concerned with finding number of fragments of the file, but just only whether it is fragmented or not.
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This blog post has a c# implimentation of the Defrag API for Windows:
http://blogs.msdn.com/b/jeffrey_wall/archive/2004/09/13/229137.aspx
It might be a good starting point.