assoc and ftype do not work under Powershell

后端 未结 2 612
离开以前
离开以前 2021-01-17 07:40

I thought all cmd commands work the same under Powershell. For example assoc and ftype do not work. Is there a way to make them work instead of swi

2条回答
  •  天涯浪人
    2021-01-17 08:26

    Expanding on Eric's answer, here's how to make assoc and ftype "just work" in powershell.

    Add this to your powershell profile -- you can just run $Profile in powershell to find your profile file:

    function assoc { cmd /c assoc $args }
    function ftype { cmd /c ftype $args }
    

提交回复
热议问题