How do you CD to the directory in the List View?

Is there an environment variable or function that shows what folder is selected in the List View?
I see that I can copy the directory in the List View and insert it into the command line to effect a CD, but isn't there a more direct way to do this?
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
3,765
47
Albuquerque, NM
prospero.unm.edu
Is there an environment variable or function that shows what folder is selected in the List View?
I see that I can copy the directory in the List View and insert it into the command line to effect a CD, but isn't there a more direct way to do this?
You want the %_TCFOLDER variable:

alias there=`cdd "%_tcfolder"`