Done Goto folder in file explorer from the current directory in the tcc prompt

May 20, 2008
469
2
I have had this in my alias file for a very long time.
Code:
.= & ^
    iff %@len[%1] GT 0 then & ^
       start explorer /e,"%$" & ^
    else & ^
       start explorer /e,"%_cwd" & ^
    endiff
At the TCC prompt, type a period (.) and enter or add param.
 
May 20, 2008
11,388
99
Syracuse, NY, USA
I have had this in my alias file for a very long time.
Code:
.= & ^
    iff %@len[%1] GT 0 then & ^
       start explorer /e,"%$" & ^
    else & ^
       start explorer /e,"%_cwd" & ^
    endiff
At the TCC prompt, type a period (.) and enter or add param.
Doesn't that start another instance of explorer.exe? And doesn't that instance hang around for about a minute after you close the window?
 
May 20, 2008
469
2
Doesn't that start another instance of explorer.exe? And doesn't that instance hang around for about a minute after you close the window?
Yes. It does create a new explorer process that goes away a little while after closing the window. But, even with a dozen Chrome tabs open and an Win10x64 VM running with 8GB of RAM on my Surface Book, which has 16GB of RAM, I have not found that to be a problem. I don't recall this being an issue on prior OS/hardware combinations either. When watching the process in SysInternals\ProcExp, CPU usage drops quickly when the window closes. After the timeout interval, the process then closes also. A new explorer process is launched even without the start command. And, the new explorer process is not a child of TCC, but of svchost.
 
Similar threads
Thread starter Title Forum Replies Date
rps Declined GOTO parameter Suggestions 5
A Done Put 'Open containing folder' on IDE tab for a specific document in the editor Suggestions 0
R Done System variable with TCC folder path Suggestions 8
R Done Starting folder for ffind /s Suggestions 9
rconn Done Protect files in folder Suggestions 0
D Done Suggestion for commands to move/copy a folder Suggestions 7
Joe Caverly Link in Help File to Blog Articles Suggestions 0
Joe Caverly Declined Use ADS file with TOAST Suggestions 1
vefatica File name completion at the beginning of the command line Suggestions 6
Joe Caverly Done @FILESIZE and NTFS File Stream Suggestions 1
Joe Caverly Determine if a file is on an SSD drive Suggestions 5
Joe Caverly Declined Debug without first saving to a file Suggestions 3
R Declined File Explorer enhancement request Suggestions 8
D Secondary shells should not search for - but reuse - the current configuration file. Suggestions 11
Joe Caverly Declined Update FFIND in Help File with example for ORing expressions to search for Suggestions 6
D Done Re-activate the [secondary] section in the ini-file Suggestions 0
x13 Done Typo in help file (including PDF) | v24.02.46 Suggestions 0
R Declined wish-list: add a command to copy a file to clipboard. Suggestions 17
M Done Parameter to ignore [Escape] for FFIND /T"XXX" in a file Suggestions 5
Joe Caverly Done File completion for LIBRARY commands Suggestions 1
vefatica Declined Enhance file name completion Suggestions 4
D Declined File Explorer Suggestions 2
R Declined Install option: Add File Explorer Run As Adminstrator option Suggestions 14
mfarah Done TCEDIT: show the full name (with drive and path) of the active file on the title bar. Suggestions 3
R User-created extended help (probably in a text file): DIRHISTORY /?x Suggestions 10
Joe Caverly Declined Help File "See Also" Suggestions 4
rconn add support for batch file projects Suggestions 0
rconn Done map the registry as a file system Suggestions 0
rconn Declined Help file organization Suggestions 0
rconn Done extend tcc file format Suggestions 0
K_Meinhard File descriptions for Explorer etc. Suggestions 1
J Directory Aliases and file:// Suggestions 0
M Done Verify validity of file name and/or path... Suggestions 2
G Declined Add option to turn on file name case sensitivity Suggestions 6
Stefano Piccardi Declined enhance FOR and DO with hexadecimal @file reading Suggestions 0
Joe Caverly Declined NTFS File Streams and ZIP Suggestions 12
M Declined Function to to verify file name validity... Suggestions 4
J Declined Suggestions for file size display Suggestions 0
S Done Automatic quoting of directory and file names Suggestions 0
S Declined Enhanced file comparisons Suggestions 0
S Declined File timestamp based dates in file date selection ranges Suggestions 0
C Done "extended" icon display in file-view Suggestions 0
S Done File matching enhancements Suggestions 1
S Done File exclusion ranges, additional orderng and reporting options Suggestions 0
S Declined Enhanced @FILE for COPY, DESCRIBE, MOVE, RENAME, SYNC, TOUCH /R Suggestions 0
J Declined Test batch file for TCCLE compatability Suggestions 0
B Declined Direct/shortcut access to the File Search finctionality Suggestions 2
Charles Dye Declined Help file request Suggestions 2
K_Meinhard Declined file tags (mp3, jpg" Suggestions 19
H Done Start TCMD.EXE with an alternate INI file Suggestions 4

Similar threads