"access denied" when using "assoc" and "ftype" from cmdline?


Honorable Member
I tried to associate the file extension .txt to a new editor program
with the well known cmdline programs ASSOC and FTYPE.

No, assigning them through WinExplorer menu does not work.
But this is another problem which should not discussed here.

When I type now one of the following alternative commands at the CommandPrompt then Windows 7 returns me something like:

assoc .txt=txtfile

"Access denied"
The following error occurs: .txt"


ftype txtfile=D:\notepad++\notepad++.exe "%%1"

"Access denied"
The following error occurs: txtfile"


The command above work fine under WinXP



Extraordinary Member
have you tried click once turn blue, hold down shift and right click and choose Open With. On sub menu choose Default program and browse to exe you want

This website is not affiliated, owned, or endorsed by Microsoft Corporation. It is a member of the Microsoft Partner Program.