windows command prompth change default path code example Example: how to change cmd default path %HOMEDRIVE%%HOMEPATH%