Thought I'd share this.
I needed some M3 x 10mm bolts and all the ones I had to hand were too long.
I needed eight and knowing what a pain they can be to get then all the same and with a clean end I devised this 'cunning' plan
Take a piece of scrap wood the thickness of the thread-length you need and drill a number of holes to match the diameter of the thread and the number of bolts you need.
Drilling the holes on the edge of the wood helps when you come to cut the excess off.
Push the bolts into the holes and clamp the wood into a vice with another piece of wood behind to hold the bolt-heads in place.
Carefully run along the bolts with a cutting wheel in your 'Dremel' and take all the excess off.
Push the bolts out of the wood and 'voila', perfectly cut bolts to the length you need.
If you take care cutting the threads will be perfect without resorting to filing.
Job done, cost nil.
Gary.