'REG'不被识别为一个内部或外部命令,可操作的程序或批处理文件 [英] 'reg' is not recognized as an internal or external command, operable program or batch file

查看:1976
本文介绍了'REG'不被识别为一个内部或外部命令,可操作的程序或批处理文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我跑这是使用查询章找出机器(AMD64或x86)的procesor_architecture服务器上的批处理文件的命令。

I'm running a batch file command on a server which is using reg query to find out the procesor_architecture of the machine(AMD64 or x86).

和我得到这个错误,没有人知道可能是什么问题。
什么东西都必须是特定的服务器上运行此命令之前,首先检查。

And I'm getting this error, does anyone know what could be the issue. And what all things have to be checked first before running this command on that specific server.

这是命令:

reg query "HKLM\System\CurrentControlSet\Control\Session Manager\Environment" /v PROCESSOR_ARCHITECTURE.

我不知道如果这有助于与否。但操作系统W2K进展在服务器上SP 4。

I don't know if this helps or not. But the OS is W2k Advances SP 4 on the server.

推荐答案

Windows 2000中不包括 REG.EXE 呢。但是,你可以找到的处理器体系结构中的环境变量:

Windows 2000 didn't include reg.exe yet. However, you can find the processor architecture in the environment variables:

> echo %PROCESSOR_ARCHITECTURE%
AMD64

重读你的问题:?哎呀,那是你一直想反正是什么,为什么用迂回的方式打扰时,你可以直接抢值

Re-reading your question: Heck, that's what you've been trying anyway, so why bother with the convoluted way when you can just grab the value directly?

这篇关于'REG'不被识别为一个内部或外部命令,可操作的程序或批处理文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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