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

ASSOC / FTYPE strange error message

Discussion in 'Support' started by Jim Cook, Feb 25, 2010.

  1. Jim Cook

    Joined:
    May 20, 2008
    Messages:
    604
    Likes Received:
    0
    I was testing some things using ASSOC and FTYPE and got this strange error
    when removing my tests. The first time went just as expected, then I
    repeated it to double check it had been removed. I did not expect to see the
    error "The operation completed successfully."

    D:\>ftype zzztest
    D:\>ftype zzztestTCC: (Sys) The operation completed successfully.
    "zzztest\SHELL\OPEN\COMMAND"

    D:\>assoc .zzz
    D:\>assoc .zzzTCC: (Sys) The operation completed successfully.
    ".zzz"


    --
    Jim Cook
    2010 Sundays: 4/4, 6/6, 8/8, 10/10, 12/12 and 5/9, 9/5, 7/11, 11/7.
    Next year they're Monday.
     
  2. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,859
    Likes Received:
    83
    Not reproducible here -- do you have a sequence of steps that generates the
    error message?

    Those errors are coming from Windows, not TCC -- the Windows API is
    returning a failure, but a subsequent GetLastError API returns 0. (This is
    unfortunately not too uncommon.)

    Rex Conn
    JP Software
     
  3. Jim Cook

    Joined:
    May 20, 2008
    Messages:
    604
    Likes Received:
    0
    I've been bitten by the error / GetLastError problem myself. Somehow the
    cut/paste of my test did not come through. Perhaps because a trailing equals
    sign was at the end of the line?

    I was removing my associations for .zzz and used the syntax, much like SET,
    to remove it.

    D:\>assoc .zzzTCC: (Sys) The operation completed successfully.
    ".zzz"

    In case something drops the trailing equals again, my command was assoc
    space dot zzz equals enter.

    --
    Jim Cook
    2010 Sundays: 4/4, 6/6, 8/8, 10/10, 12/12 and 5/9, 9/5, 7/11, 11/7.
    Next year they're Monday.
     
  4. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,307
    Likes Received:
    39
    Code:
    assoc .zzz=
    You can work around such issues by enclosing your text in
    Code:
     and 
    tags.
     

Share This Page