ASSOCIATE loses /P option

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,233
78
Albuquerque, NM
prospero.unm.edu
Code:
C:\>ver

TCC  26.00.24 x64   Windows 10 [Version 10.0.17763.973]

C:\>associate .foo=foonly.exe /p "%%1"

C:\>associate .foo
.foo=foonly.exe  "%1"

C:\>regdir /d /v hkcr\foofile
hkcr\foofile
  SHELL
    OPEN
      COMMAND
         : REG_SZ : foonly.exe  "%1"

C:\>

FTYPE /P works as expected.
 
May 20, 2008
10,671
83
Syracuse, NY, USA
It loses "/v" too, and can give a delete error when "/d" is part of the associated command line.

Code:
v:\> associate .foo=dummy.exe /d /f /p /r /u /v "%%1"

v:\> associate .foo
.foo=dummy.exe /d /f  /r /u  "%1"

v:\> associate .foo=dummy.exe /d /f /p /r /u /v "%%1"
TCC: Can't delete ".foo"
 
May 20, 2008
10,671
83
Syracuse, NY, USA
This still happens. The help says ASSOCIATE "allows you to ... modify ...". WAD?

Code:
v:\> associate .foo=dummy1.exe "%%1"

v:\> associate .foo=dummy2.exe "%%1"
TCC: Can't delete ".foo"