How to? Open Take Command at current folder

rlw

Dec 13, 2008
5
0
San Francisco Bay Area
I have been using Take Command and its ancestors since it was 4DOS, which means I've forgotten a great deal of it.

What I'm looking to do is open a Take Command window CDD-ed to the folder I'm looking at in Windows Explorer. I thought there once was a right-click context menu item for this, but I can't figure out to enable it.

Can someone please remind me how to do this? And as a bonus, where to find this kind of thing in the documentation?
 
Apr 2, 2011
1,404
10
54
North Carolina, USA
In the TCMD install folder there are 1 few BTM files. Two ar3e called TCCHERE.BTM and TCMDHERE.BTM - just run either one of these files and I am not sure if you will need to restart the computer before they will become active.
 
  • Like
Reactions: rlw

rlw

Dec 13, 2008
5
0
San Francisco Bay Area
Thanks, Charles & Charles.

This works, but it's not exactly what I had in mind. Those BTMs require me to select a folder before they will appear in the context menu, then TCC or TCMD opens inside that folder.

What I had in mind was opening to the current folder, i.e., the one I'm looking at in the Windows Explorer window. I can live with the current behavior but would prefer my desired behavior.

Followup question: when I run TCMD normally, I generally want it to open to the directory %USERPROFILE%, not in the default of TCMD's program directory. I can't just put "cdd %USERPROFILE%" in my TCSTART.BTM or it clobbers the use of "TCMD prompt here". Is there a way to distinguish, inside TCSTART, whether I am invoking TCMD in the context of "here" or not?

Sorry I'm so rusty with this; I'm just getting back to wanting to use TCMD in earnest.
 
Jun 2, 2008
350
3
What I had in mind was opening to the current folder, i.e., the one I'm looking at in the Windows Explorer window. I can live with the current behavior but would prefer my desired behavior.
See attached zipped up BTM files with lines added to also do (and undo with /u) that.
 

Attachments

  • tcc-tcmdhere.zip
    1.2 KB · Views: 101
  • Like
Reactions: rlw
May 20, 2008
11,285
95
Syracuse, NY, USA
This is probably something like what TEA-Time posted. You need to mimic what the script did in HKEY_CLASSES_ROOT\Directory\shell in HKEY_CLASSES_ROOT\Directory\Background\shell. It even works on the desktop. Mine (which I did by hand) looks like this.

Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\TCC]
@="TCCHere"

[HKEY_CLASSES_ROOT\Directory\Background\shell\TCC\command]
@="\"d:\\tc24\\tcc.exe\" *cdd \"%V\""
 
  • Like
Reactions: rlw
Jun 2, 2008
350
3
This is probably something like what TEA-Time posted.
Pretty much. Strange that %V needs to be used instead of %L, eh?
Hey, thanks! Someday I hope to regain your level of wizardry.
I'm only good with modifying existing code ..if I can figure it out Heh
Followup question: when I run TCMD normally, I generally want it to open to the directory %USERPROFILE%, not in the default of TCMD's program directory. I can't just put "cdd %USERPROFILE%" in my TCSTART.BTM or it clobbers the use of "TCMD prompt here". Is there a way to distinguish, inside TCSTART, whether I am invoking TCMD in the context of "here" or not?
Oops, forgot to address this. I just change the "Start in" field in the properties of the shortcuts.

1590641300694.png
 
  • Like
Reactions: rlw
Similar threads
Thread starter Title Forum Replies Date
Phileosophos Is there any way to open the Take Command options dialog from the command line? Support 7
D Open Windows 10 Photos app from command line Support 11
daniel347x Open a bash shell in Take Command? Support 2
M open Take Command here right-click? Support 2
D everything /o does not open the option dialog Support 4
A How to? How do you launch TCC/LE using the already-open instance? Support 5
David Wilbanks How to make new tab open in same directory as previous tab? Support 4
C OT: Registry OPEN verb to start elevated... Support 2
epement Fixed Row/Col status bar flips continuously when 2 files open Support 4
S How to? Use Forum "feedback" button to open in a new tab Support 3
Mordachai Fixed Closing TCMD while IDE + Help Open = Crash Support 7
D How to? V15.00.30 -(help!) - Floating view windows don't open Support 1
C How to? Shell Window remains open Support 6
vefatica Open properties for .LNK? Support 16
Charles Dye IFTP, current directory, open new connection Support 0
E WAD Open handle on USB drive in TCC Support 3
R How to? can not open jvm.cfg help Support 2
fishman@panix.com Is there a way to get the HELP screen to open maximized? Support 4
MBaas GUI-Tool for "File/Open" or tree (for use in batch-files) Support 3
P TCMD 11.0.28 does not open its window Support 15
CWBillow Context Menu "Open With" Support 10
T Open & Configure multiple TCC windows on STARTUP Support 4
rconn News Take Command / TCC / CMDebug / TCC-RT v28 Released Support 0
T Take Command 28: Lua reports version 5.4.0 (5.4.3 expected) Support 0
Jay Sage WAD Possible Bug With OPTION Command With @FILE Support 5
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.24 uploaded Support 0
J Take command does not start on Windows 10 Support 3
vefatica `Back quotes` - command line vs. batch file Support 5
Jay Sage WAD Failure of Alias Command with /Z Option Support 14
Phileosophos Command-line Editing Shortkeys That Fail Support 6
fpefpe How to? free (internal) command Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.23 uploaded Support 0
T How to? retain command history across reboot? Support 6
rconn News Take Command / TCC / CMDebug / TCC-RT v27.01 Build 22 Uploaded Support 0
Jay Sage Bug With Flow Control and/or Command Grouping Support 2
GermanDirk How to? EVENTLOG Command with simple User Rights not functional Support 4
Jay Sage Take Command Is Too Fast! Support 4
Jay Sage Comparison of IF with Command Group and IFF Support 6
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.21 uploaded Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.20 uploaded Support 0
U Can not get/start Take Command gui Support 1
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.19 Support 0
S Increasing Font Point Size in Command Tabs Support 2
mfarah Fixed The DATE command produces the wrong error message. Support 1
vefatica Command name mix-up Support 3
FreezerBurnt "Missing SETLOCAL" when initializing Visual Studio Command Prompt. Support 9
E How to? Closing desktop created by DESKTOP command Support 10
rconn News Take Command / TCC / CMDebug / TCC-RT v27.0.18 Support 0
K Take Command fox XP? Support 7
Joe Caverly Documentation Replace internal command with LIBRARY command Support 0

Similar threads