在CMD中更改CodePage永久? [英] Change CodePage in CMD permanently?

查看:886
本文介绍了在CMD中更改CodePage永久?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Windows cmd CodePage现在在65001.
由于我在做一些Android的东西,需要使用控制台日志,但忘记了如何改变它。

My Windows cmd CodePage is now under 65001. Since I was doing some Android stuff and need to use console log, but forget how changing it now.

当使用chcp 437更改CodePage时,它工作。但是如果我开始一个新的cmd窗口,它会回来。

When using chcp 437 to change the CodePage back, it works. But if I start a new cmd window, it goes back.

如何做chcp的事情,使它pernament?

How to do the chcp thing to make it pernament?

推荐答案

创建一个包含所有所需命令的启动批处理文件。

Create a start up batch file that includes all the commands you want.

然后编辑注册表以指向您的启动文件。

Then edit the registry to point to your start up file.

http://technet.microsoft.com/en-us/library/cc779439%28WS.10%29.aspx

c:\startup.cmd

@echo off
chcp 437

HKLM\SOFTWARE\Microsoft\Command处理器

AUTORUN =C:\startup.cmd

HKLM\SOFTWARE\Microsoft\Command Processor
AUTORUN="C:\startup.cmd"

这篇关于在CMD中更改CodePage永久?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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