assoc 和 ftype 在 Powershell 下不起作用 [英] assoc and ftype do not work under Powershell

查看:71
本文介绍了assoc 和 ftype 在 Powershell 下不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我认为所有 cmd 命令在 Powershell 下都一样.例如 assocftype 不起作用.有没有办法让它们工作而不是再次切换到 cmd?

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 switching to cmd again?

推荐答案

哦,它们可以工作,但是您必须通过 cmd.exe 调用它们,因为它们不是驻留在磁盘上的实际程序,而是内置的功能-像这样进入 cmd.exe:

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 关联
cmd/c ftype

cmd /c assoc
cmd /c ftype

这篇关于assoc 和 ftype 在 Powershell 下不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆