1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

starting in chosen directory

Discussion in 'Support' started by jsampsontheumpteenth, Jan 27, 2011.

  1. jsampsontheumpteenth

    Joined:
    Jan 25, 2011
    Messages:
    31
    Likes Received:
    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_
     
  2. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,277
    Likes Received:
    38
    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.
     
  3. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,784
    Likes Received:
    29
    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
     
  4. thedave

    Joined:
    Nov 13, 2008
    Messages:
    254
    Likes Received:
    2
    On Thu, 27 Jan 2011 12:16:05 -0500, Charles Dye <>
    was claimed to have wrote:


    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.
     
  5. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,523
    Likes Received:
    4
    ---- 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
     

Share This Page