如何32位cmd.exe启动64位cmd.exe在Windows 2003 x64? [英] How can 32-bit cmd.exe launch 64-bit cmd.exe in Windows 2003 x64?

查看:3246
本文介绍了如何32位cmd.exe启动64位cmd.exe在Windows 2003 x64?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

后续追踪 Windows2k8 64中的7zip执行权限



我试图避免一个过于复杂的构建过程,使多个7zip exes。我只需要一个.cmd启动我的java进程读取一些64位注册表项后。



上面的问题发现了一个骗子,让win2k8检测一个32位的cmd.exe和交换它到64位,有没有办法在win2k3这样做?有一个Windows修补程序允许reg.exe在32位模式下访问64位条目,但我不能放心,在客户的服务器上,所以解决方法是一个没有去。

c:\Windows \System32 code>文件夹而不重定向到 c:\Windows \SysWow64 文件夹。在Win2008中,您可以通过访问 c:\Windows \Sysnative 路径来实现此目的。不幸的是,在Win2003上需要修补程序(请参阅 http://support.microsoft.com/kb/942589 )。<有一个解决方法 - 您可以创建一个NTFS连接点,指向 c:\Windows \System32 文件夹并使用到该连接点的路径,而不是 c:\Windows \System32 。使用System Internals的 junction.exe 我设法从32位cmd.exe创建了这样的连接点并启动64位cmd.exe。


Follow up to 7zip execution permissions in Windows2k8 64

I'm trying to avoid having an overly complicated build process to make multiple 7zip exes. I just need a .cmd to kick off my java process after reading some 64-bit registry entries. However, to succeed with a single exe, it needs to be 32 bit.

The above question found a trick for getting win2k8 to detect a 32 bit cmd.exe and swap it to 64 bit, is there a way to do this in win2k3? There's a windows hotfix that allows reg.exe to access 64 bit entries in 32bit mode, but I can't be assured that's on the customer's server so that workaround is a no go.

解决方案

To launch 64-bit cmd.exe from 32-bit cmd.exe you must be able to access c:\Windows\System32 folder without being redirected to c:\Windows\SysWow64 folder. In Win2008 you can achieve this by accessing c:\Windows\Sysnative path. Unfortunately on Win2003 a hotfix is required (see http://support.microsoft.com/kb/942589).

There is a workaround - you can create an NTFS junction point that directs to c:\Windows\System32 folder and use path to that junction point instead of c:\Windows\System32. Using System Internals' junction.exe I managed to create such a junction point from 32-bit cmd.exe and launch 64-bit cmd.exe.

这篇关于如何32位cmd.exe启动64位cmd.exe在Windows 2003 x64?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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