Windows command prompt freezing randomly
Disable the QuickEdit Mode
and\or Insert option
from the cmd properties.
Problem solved
I may have found the issue. Through some trial and error it seems that when i click in the command prompt it freezes the console. When i press escape (to take the cursor out of the window) it unfreezes the console.
So, to avoid this problem, i just don't click in the windows command prompt window while anything is running.