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


  1. Posts : 244
    win7pro 64bit
       #1

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


    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 Win7 returns me something like:

    assoc .txt=txtfile

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

    or

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

    "Access denied"
    The following error occurs: txtfile"

    Why?

    The command above work fine under WinXP

    Peter
      My Computer


  2. Posts : 748
    Windows 7 Professional x64 PL
       #2

    Question:

    Did you run cmd.exe with administrative previlliges?
    Elevated Command Prompt
      My Computer


  3. Posts : 1
    WIN7 familial 64bits
       #3

    access denied


    I try with administrative right, It works. Thanks
      My Computer


  4. Posts : 25,847
    Windows 10 Pro. 64/ version 1709 Windows 7 Pro/64
       #4

    Welcome to our Forum jean123.

    Glad you found something that comes to your aid.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 12:34.
Find Us