|
本帖最后由 laiwatch 于 2020-1-12 16:12 编辑
在这个帖子http://club.excelhome.net/thread-1517617-1-2.html 提到一个非常有趣的问题
shell 居然无法打开system32下的的截图程序, snippingtool.exe
还有这等事, 赶紧试试,.........................................额,真的打开不开
这是神马情况, 这等这么奇葩的事, 反复试了一下,还是不行- C:\Windows\Sysnative\SnippingTool.exe
复制代码 使用CMD/Powershell,都可以直接打开, 为什么shell就不行
打开snipp的属性, 居然发现奇怪的东东, snipp的位置居然不是指向system32
- C:\Windows\WinSxS\amd64_microsoft-windows-snippingtool-app_31bf3856ad364e35_6.3.9600.17415_none_8acefd165d6066de\SnippingTool.exe
复制代码 这是.............????
直接shell, 还是不行, 使用cmd打开, 直接出错
又试了在shell 通过cmd 和 Powershell,间接打开, 还是没用
赶紧开虚拟机,搞起, 服了................., 虚拟机为Windows7 x86(主机Windows8.1, x64)
在虚拟机中, shell 直接就打开了, 看了一下文件对应的位置, 指向system32, 没问题
这不是妥妥歧视x64么...............
老规矩, StackOverflow翻一下有无类似的问题, 尽管有人提到类似的问题, 但是没人解答.......拿来主义是不行了
终于还是要去翻Microsoft docs, 天书
终于找到问题的症结所在了
https://docs.microsoft.com/en-us/windows/win32/winprog64/file-system-redirector?redirectedfrom=MSDN
- <b>The %windir%\System32 directory is reserved for 64-bit applications on 64-bit Windows</b>. Most DLL file names were not changed when 64-bit versions of the DLLs were created, so 32-bit versions of the DLLs are stored in a different directory. WOW64 hides this difference by using a file system redirector.
复制代码 简单的说就是: system32目录是为64位专门准备的, 32位的去其他地方待着额...........为什么还是叫system32呢?而不是system64呢?
下面揭晓答案...........
|
|