Is there an equivalent key-stroke for exiting a command prompt on Windows (launched via Start->Run : cmd) to the bash standby of Ctrl-d to prevent needing to type
exit to leave the shell?
No. CtrlD on *nix generates a EOF, which various shells interpret as running
You can use DOSKEY to create macros in CMD.exe.
To create a macro type:
That way you can bind a key to another command.
I'm not sure if you can use CTRL-$n combinations as macros though
There is now an open source project called clink at http://code.google.com/p/clink/ - it brings Unix readline functionality to the Windows command prompt.
It supports most functionality including command-line editing, history search, tab completion along with completion scripts, etc. Well worth checking out, makes cmd suck much less. ;]