Is there a way to automatically show the contents of a directory after a cd change in the windows cmd?
Is there a way to automatically show the contents of a directory after a cd change in the windows cmd? So i want to change directory and view the new directory contents automatically with out having to type cd folder and then dir on the next line. Is there a way to adjust the settings on the windows cmd prompt such that every time you change directory it lists the contents automatically? cd folder dir You can do two commands in one line like shown here stackoverflow.com/questions/8055371/… – Sunley95 Aug 22 at 13:49 2 Answers 2 Yes & No. What you can do, is make cd and alias for cd & dir : cd cd & dir doskey cd=cd $* ^& dir Note that these aliase are by standard only avaible for the session you define them. To use this alias persistent take a look at the tutorials I linked at the bottom. Explanation: doskey - create an alias/makro using doskey.exe doskey doskey.exe cd $* - Use cd with the argument given to the alias cd $* cd ^...