starting in chosen directory

Jan 25, 2011
35
0
When I start TCC it shows the path [C:\Program Files\JPSoft\TCMD12] -
I have in the past been able to get it to start in a directory of my choice instead. I have forgotten how to do it, and searching through help has been fruitless. Can anyone help?

Regards

_John Sampson_
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,461
88
Albuquerque, NM
prospero.unm.edu
When I start TCC it shows the path [C:\Program Files\JPSoft\TCMD12] - I have in the past been able to get it to start in a directory of my choice instead. I have forgotten how to do it, and searching through help has been fruitless. Can anyone help?

I would recommend setting the "Start in" directory in the properties of the shortcut you use to launch TCC. (Right-click on the icon, Properties, Shortcut.)

You can also change the directory in TCStart.btm, but I don't recommend that approach. It can have unforeseen side effects for pipes.
 
May 20, 2008
11,400
99
Syracuse, NY, USA
On Thu, 27 Jan 2011 12:16:07 -0500, Charles Dye <> wrote:

|You can also change the directory in TCStart.btm, but I don't recommend that approach. It can have unforeseen side effects for pipes.

But you could avoid such difficulties with the likes of

Code:
IF @_PIPE NE 1 .AND. @_TRANSIENT NE 1 CDD ...

Actually, I avoid all tcstart processing (appropriate for me) thus:

Code:
IFF %_TRANSIENT == 1 .OR. %_PIPE == 1 THEN
	QUIT
ELSE
	REM normal instance
	REM ...
ENDIFF
 
Nov 13, 2008
255
3
www.thedave.me
On Thu, 27 Jan 2011 12:16:05 -0500, Charles Dye <>
was claimed to have wrote:


>I would recommend setting the "Start in" directory in the properties
>of the shortcut you use to launch TCC. (Right-click on the icon,
>Properties, Shortcut.)
>
>You can also change the directory in TCStart.btm, but I don't
>recommend that approach. It can have unforeseen side effects
>for pipes.

Personally I've had my best luck changing the directory in TCStart.

I have a sections that I skip if _pipe or _transient are set to avoid
this exact situation. Within that block is this:

if "%_cwds" eq "%@path[%@full[%comspec]]"

This catches when TCMD wants to start in it's own directory, but avoids
changing the directory randomly when TCMD needs to start in another
directory.

I dislike modifying shortcuts (in general) because that's something I
need to do in several places, on several machines, and it often gets
undone when upgrading.
 
May 20, 2008
3,515
4
Elkridge, MD, USA
---- Original Message ----
From: thedave
| I dislike modifying shortcuts (in general) because that's something I
| need to do in several places, on several machines, and it often gets
| undone when upgrading.
Save your analyzed shortcuts using the SHORTCUT command. You can write a simple TCC batch program to build and install customized shortcuts (as well as aliases) based on a few environment variables describing each hardware platform.
--
Steve
 
Similar threads
Thread starter Title Forum Replies Date
C How to? starting TCC/TCMD v25 Support 2
samintz Starting Terminal from TakeCommand Support 3
vefatica Starting *.xlsm? Support 34
Steve Pitts _TCTAB when first starting Take Command Support 2
vefatica Starting Office apps Support 8
W Starting program for word to pdf conversion (difference cmd and tcc) Support 13
vefatica Starting Office 365 apps? Support 3
D WAD STARTing WUP apps Support 1
D Occasional TCMD 17 crash when starting additional TCC Support 4
D Folders pane display problem when starting Support 4
samintz Fixed DO /L with stringset starting with /n /e Support 2
C Fixed Starting editor from VIEW Support 9
M Starting Windows GUI programs from the command line... Support 10
ehab aboudaya WAD starting tcmd.exe with dir that has Boost C++ Libraries zip file delays Support 2
vefatica Starting shell objects Support 6
C starting TC/LE on the command line Support 1
C starting a shortcut from desktop Support 14
C starting tcmd with alternate INI file Support 15
F unexpected %1 while starting ide Support 6
T Starting a process blocks TCC window... Support 2
T Problem Starting Vim & gVIM Support 5
millardjk IDE dies without starting Support 4
S Starting TCC with double click on tab bar Support 0
fishman@panix.com HELP!! I just updated to Version 28 and as usual I cannot make extended directory search work. Support 2
D How to use multi-line DO to loop through first level directory names Support 5
D ParentDirectory does not update directory history Support 6
samintz CDD to non-existent directory hangs Support 2
gworley rd (Remove Directory) gives interesting error: Support 2
D Directory History Window with wildcard search Support 3
D How to? Skip removing directory (RMDIR) without error message Support 2
gentzel Directory stack empty when running TCEXIT? Support 9
vefatica Disable extended directory searches (completely)? Support 8
M WAD "Pictures" directory is empty in TCC but not in CMD or Explorer Support 4
G Local Directory Corruption Support 11
Jay Sage Directory Alias Access to FTP Servers Support 2
Joe Caverly DIRectory Colorization in v25 Help File Support 0
K copy changing destination current directory Support 1
thorntonpg option /u not working The directory name is invalid Support 5
J built in file explorer - how do i go back "up" the directory? Support 2
vefatica Extended directory searches? Support 6
Joe Caverly Using a Directory Alias with @iniwrite fails Support 14
A Installer /extract: extracts into current directory if target not exists Support 12
Charles Dye Ctrl-Shift-Up doesn't update directory history Support 1
G Extended directory search not working Support 4
CWBillow Editing in the root directory of windows 10 Support 6
D Directory stack empty Support 1
J directory or folder to start in Support 2
M How to unlock a directory Support 1
Alpengreis Fixed TCMD FileExplorer Start-Directory problem Support 4
R V19 - At startup, TCC save directory in the directory history list Support 2

Similar threads