Why pc get hang

Need more details, it's that specific? It only happens when you run dreamweaver or "scanning" a drive? By scanning do you mean searching for a file, or running a check disk command?

Check the event viewer in Windows see if there are application crashes listed.