Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does powershell have something like "echo off" in command prompt mode?

Tags:

powershell

In CMD command prompt, the echo off command disables the command prompt to be shown in the "Command Prompt Window".

i.e., it does not show the folder path anymore in the prompt, giving you a clean dark window.
I've put a gif below to make this very clear:

After the echo off command, the prompt doesn't show the path "C:\Users\TEMP>" anymore, until I type echo on again.

Does powershell have something like this? Sorry if this is silly. I tried to look for it, but didn't find a simple answer regarding the command prompt window (not a script execution).

enter image description here

like image 347
Diogo Avatar asked Oct 28 '25 15:10

Diogo


1 Answers

Use the backspace control character.

function prompt { echo " `b" }

no prompt message

like image 129
7cc Avatar answered Oct 31 '25 12:10

7cc



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!