windows - cmd 不显示某些文件

标签 windows cmd

这里有些奇怪。当我运行时: 设置 oShell = CreateObject("WScript.Shell") oShell.run("C:\Windows\System32\PnPutil.exe") 我收到 80070002 找不到指定的文件。我知道那个文件在那里。所以我跑了: oShell.run("cmd/K C:\Windows\System32\PnPutil.exe") 我得到一个命令外壳并浏览到 C:\Windows\System32。 PnPutil.exe 不存在。我可以浏览到资源管理器中的文件夹,它就在那里。是什么赋予了?我在另一个 cmd 世界中吗?

最佳答案

您可能在 64 位 Windows 上运行 32 位 cmd.exe。对于 32 位应用程序,%SystemRoot%\System32 被重定向到 %SystemRoot%\SysWow64,这是 32 位 DLL 和 EXE 所在的位置(MSDN:File System Redirector ).但是没有 32 位版本的 PnPutil.exe。试试 C:\Windows\Sysnative\PnPutil.exeSysnative 虚拟目录允许 32 位应用访问真实的 System32 目录。

关于windows - cmd 不显示某些文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27495734/

相关文章:

Windows程序员,安装到C :\Windows?是个好习惯吗

windows - Windows 中用于应用程序白名单的代码签名应用程序

windows - 关于为 VS2008 组织跨平台库的最佳方式的任何建议

C#、WPF、Visual Studio 4 : irregular shape color filling

windows - 批量For文件循环字符串替换

regex - cmd:替换文件名的内部部分(使用正则表达式掩码)

java - 在 JOptionPane 上下载、保存和预览图像

bash - 如何在使用 Plink 执行的 bash 文件中接受用户输入?

python - "Error 309"是什么意思?

c++ - Visual Studio 2013 : CL. exe 已退出,代码为 -1073741515