ASSOC / FTYPE strange error message

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
#1
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.
 

rconn

Administrator
Staff member
May 14, 2008
10,101
85
#2
> 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 zzztest
> TCC: (Sys) The operation completed successfully.
> "zzztest\SHELL\OPEN\COMMAND"
>
> D:\>assoc .zzz
> D:\>assoc .zzz
> TCC: (Sys) The operation completed successfully.
> ".zzz"
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
> > D:\>assoc .zzz
> > D:\>assoc .zzz
> > TCC: (Sys) The operation completed successfully.
> > ".zzz"
> ---End Quote---
> 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.)
>
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.