c:\cmdauto.cmd
This will cause the given script to be executed each time a cmd.exe window is opened. I found out about that thanks to this superuser.com post.
Now put this in c:\cmdauto.cmd
@echo off
doskey cd=pushd $*
The doskey command creates aliases, here overriding the behavior of "cd".
2 comments:
This is by far the best thing I have ever found for Windows cmd!!!
Before this, I had to execute:
doskey /MACROFILE=foo.txt
each time I started a cmd session.
Thanks for the tip!
Post a Comment