how to change the default directory in cmd code example Example: how to change cmd default path %HOMEDRIVE%%HOMEPATH%