Have you looked at the included scripts like FastOptimize.MyD? if you want more check the "Scripts, and other contributions" there are some scripts posted for different needs, or are you asking for something else?
To defrag only your C: drive you can put it as a parameter if you start the script via a shortcut, or use the
Name("c:") Boolean within a script.
jonib