If the windows opens, but doesn't respond to your commands, then your PATH may have been altered. You need to add the folders where these commands exist back into the PATH.

http://www.windows7hacker.com/index.php/2010/05/how-to-addedit-environment-variables-in-windows-7/