本文介绍了如何在Windows中更改命令行提示符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将命令行提示符更改为控制台?

How do I change the command-line prompt into a console?

我一直在,但我找不到它。

I've been looking in the console functions API, but I could not find anything for it.

推荐答案

有PROMPT环境变量:

There's the PROMPT environment variable:

set PROMPT=$P$G

$ P $ G 是默认值,为您提供通常的 C:\> 类型输出。 。

$P$G is the default value, giving you the usual C:\> type output. There are more format variables available here.

这篇关于如何在Windows中更改命令行提示符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-27 08:37
查看更多