Windows: Run script upon cd

96 views Asked by At

I've been using a small set of bash scripts to execute various actions upon changing to a directory (say, rebasing repositories, cleaning temps, rotating logs, reading my mail, etc) and noticed this is not a common thing on windows at all.

A cursory google search doesn't show much... is it even something that is possible?

In Bash this is accomplished by writing a small function called cd and having it work on top of the builtin cd. Is that mechanism available on windows? If it isn't, what other alternatives might there be?

0

There are 0 answers