如何在Windows 7 32位的CLI中禁用.com文件?


0

我刚刚设置了一个Windows 7 x86 32位SP1企业版安装, 键入编辑(在我的路径中有一个costum edit.cmd,在我的用户配置文件中的目录中)到CLI,发现它仍然在C:\ windows \ system32中有edit.com(在我使用64位窗口之前) 现在我不想重新安排我的路径,而是禁用/删除edit.com, 我怎么做?


2
如果你不想改变 %PATH%,改变是否可以接受 %PATHEXT%.COM s执行优先级最低?
jscott

哦,是的,我没想到,谢谢
Sebastian Godelet

但是,只有当两个文件在同一目录中时,才使用pathext,只是结尾不同?
Sebastian Godelet

我把它读作你的 edit.cmd 住在C:\ Windows \ system32 \旁边 edit.com。我很抱歉。
jscott

编辑更清楚,thx
Sebastian Godelet

Answers:


0

实际上只是删除 .com 从pathext做诀窍:),感谢@jscott给予正确的预感,我现在仍然好奇有什么优先权: %pathext% 或者 %path%

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.