Batch Script - PROMPT


Advertisements

This batch command can be used to change or reset the cmd.exe prompt.

Syntax

PROMPT [newpromptname]

Example

@echo off 
prompt myprompt$G

The $G is the greater than sign which is added at the end of the prompt.

Output

The prompt shown to the user will now be myprompt>

batch_script_commands.htm
Advertisements