Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Execute Command upon changing to a specific directory

Aug
1,929
71
When I change to my E:\Utils directory, I usually do a directory listing of files modified in the last day.

I have automated this with the following alias;
Code:
alias cd_enter=`if %1 eq e:\utils dir e:\utils /[d-0]`

Reference to CD_Enter: ALIAS command - create new command names

Posting mainly for my future reference, but thought others might also be interested in this tip.

Joe
 
Back
Top