15 Command Prompt Secrets and Tricks in Windows

preview_player
Показать описание
DID YOU KNOW THESE COMMAND PROMPT SECRETS?

Here we have several cool tricks and commands for the Windows command prompt that you might not have known about before. Everything from customizing the actual command text itself, to hidden shortcuts for using previous commands, and even outputting the results to the clipboard or a file. Some of these even I only found out about recently!

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

#Windows #Technology #Tech
Рекомендации по теме
Комментарии
Автор

I changed the text to light green.



Hacker voice: *I'M IN!*

Ali
Автор

How to fix CMD:
- Close the CMD window
- Start up PowerShell instead

MZZenyl
Автор

Roses are red my screen is blue i think i just deleted system32

bernhardvaland
Автор

6:33 You can actually just use one.
Example: "prompt a & title b & start calc"
It will set the prompt to a and title to b, and start the calculator.
7:49 Actually, it will place the file on the folder the command prompt is being executed.

brunocamposquenaoeoyoutuber
Автор

Quick Tip: Everytime you are changing something in the registry, save a copy of everything at the start so when you mess up you will just load the backup instead of having to reset your windows.

CulturalToast
Автор

i've been using cmd prompt (and DOS at the time) for almost 25 years and i still learned some stuff in here. Great content!

poprivest
Автор

You can also use just one ampersand. Using one ampersand will run the second command after the first has finished no matter what; using two will run the second command only if the first command succeeded (didn't return an error code).

vnceigz
Автор

Ah yes, because - I definetely use command prompt. I'm just *that* good at computers.

bodge_
Автор

So many vids about shells and terminals are Unix/Linux based; so great to get quality content for us Windows folks out here.

alanschmitt
Автор

Nice tips! I did my computer teething with MS-DOS (version 1 or 2). But the "clip" command was really nice to learn! I hadn't known they added that into the command prompt. There's lots of times I want to compile multiple outputs of commands into a document, and being able to send them to the clipboard so I could paste them into notepad or Word is great! Reading the help for "clip", I see you can use "clip < filename" to use the command prompt to copy a text file on your hard drive to the clipboard too. Nice!

bobcarn
Автор

My friends call me "computer expert" thanks bro😂

yourbrandnamehere
Автор

"prompt $T$H$H$H $B $P$G$S" will display what Joe showed, but the time will be without the milliseconds.

drangod
Автор

That was fun flashback. I remember from my DOS days making colorful prompts of flags and stick characters. I'd save my custom code into differ bat files.

Robert
Автор

A lot of these are standard sysadmin stuff. Just input/output redirection.
> = takes stdout to whatever you put there.
| = pipe just takes the output and inputs it to the next command.
A lot of these work in linux as well depending on what shell you use.
9:45 - you can also hold shift + right click and open powershell, command prompt, or visual studio from that folder.
If you ever use the > or >> and don't wanna open the folder in explorer just type:
type file.txt
In linux type is the same as cat it outputs the contents of the file into stdout (your output)

MrVampify
Автор

Holy crap, I had no idea about 'clip' putting the output into the clipboard. I wish I knew that earlier!

taylorsmurphy
Автор

6:35 Important: The "&&" is behaving exactly like in a programming language.
In a programming language, this is the "and" operator. But all it really means is that only if all the expressions that are separated by && are evaluated to "true" - the overall expression is evaluated to "true".
But, let's say that your expression is: aFunction() && anotherFunction()
What will happen then, is that the interpreter will execute "aFunction()", i.e. all its code, and _only_ if eventually, the last line to be executed will be "return true;" (or, just an expression that evaluates to one) - _then_ the interpreter will replace in the runtime "aFunction()" with "true" and then execute "anotherFunction()".

Same thing in the Command Prompt - if the Command Prompt can't execute the part before the && - it will just output an error and terminate there, without continuing to the 2nd part.
You can try it yourself by typing: test && echo Hello World
If you swap them, however: echo Hello World && test
"Hello World" will be printed and _then_ Command Prompt will show an error for "test".

avi
Автор

The 'prompt' and 'title' ones will be handy for trolling, thanks ThioJoe! Very cool!

CamoFlash_
Автор

"Be seeing you" The Prisoner -- love it!

HarshColby
Автор

Instead of editing the registry, you can use the SETX command to set the prompt permanently, an example would be: SETX PROMPT $P$G, which would show the drive path followed by the greater than arrow

Camobiwon
Автор

It would be helpful to list all 15 command at their timestamp in your video so we could go right to it (direct access is always better than sequential access :-)

danbromberg