如何在Windows中更改命令行提示符? [英] How do I change the command-line prompt in Windows?

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

问题描述

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

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

我一直在控制台功能API ,但我找不到它。

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中更改命令行提示符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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