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

#1
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,587
46
Albuquerque, NM
prospero.unm.edu
#2
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"`