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

Implementing directives via file-manager

Discussion in 'Support' started by old4doser, Jul 19, 2010.

  1. old4doser

    Joined:
    Jul 15, 2010
    Messages:
    6
    Likes Received:
    0
    I'm using TC Version 11.0 on Windows XP, SP2. I’m familiar with 4DOS, but not Take Command.

    When I double-click a btm file from my file-manager (NOT in the TC Console), and the btm is something simple (maybe just "pause"), the tcc.exe window opens with the "Copyright" header displayed.

    Is there a way to have the "Copyright" header not be displayed when I click a btm from my file-manager?

    I know about the /Q directive. I made a TC SHORTCUT to tcc.exe and when I click on it from my file-manager, the tcc.exe window opens without the header. So, the shortcut works.

    But, in order for that to happen when I click on a btm file from my file-manager, I need to Associate btm files with the shortcut. But, my XP Control Panel >> Folder Options >> File Types doesn't show the link when I browse to its directory.

    This header issue is insignificant and inconsequential, but this seems like a reasonable expectation of directives as I understand them, and there may be other directives I’ll want to use in the future.

    Regards.
     
  2. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,277
    Likes Received:
    38
    You don't want to associate .BTM files with a shortcut; you want to associate them with TCC.EXE, including whatever switches are appropriate. You can do this using the ASSOC and FTYPE commands.

    Start by typing
    Code:
    assoc .btm
    to find Windows's symbolic name for this filetype. In my case it's "btmfile", but on your system it's probably different.

    Then you can use FTYPE to associate that file type with the executable. I haven't tested, but it would probably look something like this:

    Code:
    ftype btmfile=`c:\bin\tcmd\tcc.exe /q /c "%1" %*`
    Note the use of backquotes to protect the percent signs. Replace "btmfile" with whatever ASSOC .BTM reported, and replace the "c:\bin\tcmd\tcc.exe" with the correct path to TCC.EXE on your system -- in double quotes if needed.
     
  3. old4doser

    Joined:
    Jul 15, 2010
    Messages:
    6
    Likes Received:
    0
    Your instructions for the 'assoc' and 'ftype' did the trick. I had to undo
    the association I'd made in the Control Panel, but then it worked fine. That
    also showed me how to implement the other 'TCC Startup Options' relative to
    the other Startup "options" which I will tackle another day.

    Thanks

    -----Original Message-----
    From: Charles Dye [mailto:]
    Sent: Monday, July 19, 2010 7:30 PM
    To: mcgraw01@comcast.net
    Subject: RE: [Support-t-2173] Re: Implementing directives via file-manager

    ---Quote (Originally by old4doser)---
    I'm using TC Version 11.0 on Windows XP, SP2. I'm familiar with 4DOS, but
    not Take Command.

    When I double-click a btm file from my file-manager (NOT in the TC Console),
    and the btm is something simple (maybe just "pause"), the tcc.exe window
    opens with the "Copyright" header displayed.

    Is there a way to have the "Copyright" header not be displayed when I click
    a btm from my file-manager?

    I know about the /Q directive. I made a TC SHORTCUT to tcc.exe and when I
    click on it from my file-manager, the tcc.exe window opens without the
    header. So, the shortcut works.

    But, in order for that to happen when I click on a btm file from my
    file-manager, I need to Associate btm files with the shortcut. But, my XP
    Control Panel >> Folder Options >> File Types doesn't show the link when I
    browse to its directory.

    This header issue is insignificant and inconsequential, but this seems like
    a reasonable expectation of directives as I understand them, and there may
    be other directives I'll want to use in the future.
    ---End Quote---
    You don't want to associate .BTM files with a shortcut; you want to
    associate them with TCC.EXE, including whatever switches are appropriate.
    You can do this using the ASSOC and FTYPE commands.

    Start by typing
    Code:
    ---------
    assoc .btm
    ---------
    to find Windows's symbolic name for this filetype. In my case it's
    "btmfile", but on your system it's probably different.

    Then you can use FTYPE to associate that file type with the executable. I
    haven't tested, but it would probably look something like this:


    Code:
    ---------
    ftype btmfile=`c:\bin\tcmd\tcc.exe /q /c "%1" %*`
    ---------
    Note the use of backquotes to protect the percent signs. Replace "btmfile"
    with whatever ASSOC .BTM reported, and replace the "c:\bin\tcmd\tcc.exe"
    with the correct path to TCC.EXE on your system -- in double quotes if
    needed.
     

Share This Page