如何防止我的批处理文件显示路径?

时间:2015-11-25 14:21:59

标签: batch-file path

[如何阻止它显示C:/ Users / [Username] / Desktop /? Link

我的代码:

@Echo off
title Menu
color A
echo You can do anything,but please don't delete system32!
echo color (1-11) title (name)
echo If you type CLS you can hide the hints!
echo For Game and Program codes type in: Codes!
cmd /k

1 个答案:

答案 0 :(得分:1)

使用prompt,例如:

  • cmd /k prompt $$将提示更改为$
  • cmd /k prompt $T$G$S将提示更改为17:29:12,44>(结尾处有空格)

通过在命令提示符控制台中运行prompt /?来查看更多格式代码。