Customize your DOS/CMD Prompt

Last Updated: 

👉 This post was initially written in 2006 and refered to specific software versions. When tunning your system, always consider which version you are running. Information below may be outdated. Use it at your own risk.

If you want to tune your PROMPT you just need to use... the PROMPT command ! By default the prompt is set to the current path, but you can customize it a little.

# Display prompt help


# Customize your prompt


# Will give this result in my cmd window

17:11:55,31 sam. 21/10/2006

D:\Documents and Settings\Nicolas>

Related windows posts that you may like
Running Bash script with Ubuntu on Windows 10 using WSL
No-hassle! Learn how to run Bash on Windows by installing your favorite Linux distribution natively on Windows 10 using Windows Subsystem for Linux, aka WSL.
Files and directories user permissions on Windows XP
How to solve files and directories permissions on windows XP using CACLS.
Determine which Windows OS version is running
How to workaround the lack of command line to sleep or wait some period of time on windows XP. This tips shows, first a batch example using the ping command, second using the Windows Server 2003 Ressource Kit tools with the SLEEP command.