set default path for command prompt code example Example: how to change cmd default path %HOMEDRIVE%%HOMEPATH%