.bashrc equivalent for windows cmd shell?

cmd, shell, windows

Solution

You can use a batch file to launch a cmd prompt:

@echo off
cmd /k prompt $g

Problem

Is there a .bashrc like file that Windows cmd shell reads on start-up? I'd like to set a shorter prompt, the default prompt shows the full path to the current directory and it gets messy when I descend down several levels of sub-directories. Currently, I'm manually calling the `PROMPT` command whenever the displayed path gets too long. It'll be nice to set it automatically.

Original source

Related problems