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

Discussion in 'Windows 7 Help and Support' started by pstein, Aug 2, 2010.

  1. pstein

    pstein Honorable Member

    Joined:
    Mar 20, 2010
    Messages:
    347
    Likes Received:
    0
    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"

    or

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

    "Access denied"
    The following error occurs: txtfile"

    Why?

    The command above work fine under WinXP

    Peter
     
  2. Veegertx

    Veegertx Honorable Member

    Joined:
    Nov 19, 2009
    Messages:
    444
    Likes Received:
    19
    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
     
  3. zvit

    zvit Honorable Member

    Joined:
    Nov 3, 2009
    Messages:
    2,455
    Likes Received:
    84

Share This Page

Loading...