assoc and ftype do not work under Powershell

后端 未结 2 609
离开以前
离开以前 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:29

    Oh, they'll work, but you have to call them through cmd.exe as they're not actual programs that reside on disk, but functionality built-in to cmd.exe like so:

    cmd /c assoc
    cmd /c ftype

提交回复
热议问题