snippetbashTip
prompt — Change the default DOS style prompt in a command window. More information: <https://learn.microsoft.
Viewed 0 times
thepromptcommanddosstyleclichangedefault
windows
Problem
How to use the
prompt command: Change the default DOS style prompt in a command window. More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/prompt>.Solution
prompt — Change the default DOS style prompt in a command window. More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/prompt>.Reset the prompt to the default setting:
promptSet a specific prompt:
prompt {{prompt}}Change the prompt to show the current date first:
prompt $D $P$GChange the prompt to show the current time first:
prompt $T $P$GChange the prompt by adding a specific text first:
prompt {{text}} $P$GCode Snippets
Reset the prompt to the default setting
promptSet a specific prompt
prompt {{prompt}}Change the prompt to show the current date first
prompt $D $P$GChange the prompt to show the current time first
prompt $T $P$GChange the prompt by adding a specific text first
prompt {{text}} $P$GContext
tldr-pages: windows/prompt
Revisions (0)
No revisions yet.