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