prompt

cmd.exe のコマンド プロンプトを変更します。


prompt

  • help prompt

Output:

cmd.exe のコマンド プロンプトを変更します。

PROMPT [文字列]

  文字列    新しいコマンド プロンプトを指定します。

PROMPT には通常の文字と次に示す特殊コードを使用できます:

  $A   & (アンパサンド)
  $B   | (パイプ)
  $C   ( (左かっこ)
  $D   現在の日付
  $E   エスケープ コード (ASCII コードの 27)
  $F   ) (右かっこ)
  $G   > (不等号 (より大))
  $H   バックスペース (直前の文字を削除します)
  $L   < (不等号 (より小))
  $N   現在のドライブ
  $P   現在のドライブとパス
  $Q   = (等号)
  $S     (空白)
  $T   現在の時刻
  $V   Windows のバージョン番号
  $_   キャリッジ リターンとラインフィード
  $$   $ (ドル記号)

コマンド拡張機能を有効にすると、PROMPT コマンドは、次の追加の書式
文字をサポートするようになります:

  $+   PUSHD ディレクトリ スタックの深さに応じて、0 個以上のプラス
       記号 (+) を指定します。1 個のプラス記号が、プッシュされた
       1 レベルを表します。

  $M   現在のドライブ文字に関連付けられているリモート名を表示します。
       現在のドライブがネットワーク ドライブでない場合は、空の文字列
       を表示します。
Changes the cmd.exe command prompt.

PROMPT [text]

  text    Specifies a new command prompt.

Prompt can be made up of normal characters and the following special codes:

  $A   & (Ampersand)
  $B   | (pipe)
  $C   ( (Left parenthesis)
  $D   Current date
  $E   Escape code (ASCII code 27)
  $F   ) (Right parenthesis)
  $G   > (greater-than sign)
  $H   Backspace (erases previous character)
  $L   < (less-than sign)
  $N   Current drive
  $P   Current drive and path
  $Q   = (equal sign)
  $S     (space)
  $T   Current time
  $V   Windows version number
  $_   Carriage return and linefeed
  $$   $ (dollar sign)

If Command Extensions are enabled the PROMPT command supports
the following additional formatting characters:

  $+   zero or more plus sign (+) characters depending upon the
       depth of the PUSHD directory stack, one character for each
       level pushed.

  $M   Displays the remote name associated with the current drive
       letter or the empty string if current drive is not a network
       drive.

Return Code: 1


Built with Hugo
テーマ StackJimmy によって設計されています。