Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

ASSOC / FTYPE strange error message

May
603
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.
 
> 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
 
> > 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.
 
In case something drops the trailing equals again, my command was assoc space dot zzz equals enter.

Code:
assoc .zzz=

You can work around such issues by enclosing your text in
Code:
 and
tags.
 

Similar threads

Back
Top