15 Command Prompt Secrets and Tricks in Windows
Вставка
- Опубліковано 27 лис 2018
- DID YOU KNOW THESE COMMAND PROMPT SECRETS?
● More Top Lists ➤ • Top Lists
● Subscribe Here ➤ ua-cam.com/users/ThioJoe?...
⇒ Become a channel member for exclusive features! Check it out here: ua-cam.com/users/ThioJoejoin
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!
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
⇨ / thiojoe
⇨ / thiojoe
⇨ / thiojoetv
My Gear & Equipment ⇨ kit.com/ThioJoe
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
#Windows #Technology #Tech - Наука та технологія
I changed the text to light green.
Hacker voice: *I'M IN!*
Ali107 good ol' color 0a
I did this in my school's coding club
wow hackerman ! that is so epic !
Look up a Linux application called cmatrix here on UA-cam. It's that times a million.
lol
How to fix CMD:
- Close the CMD window
- Start up PowerShell instead
This comment was made by Windows Powershell gang.
@MCKing45TheHero Arch or noob.
I honestly hate Linux. Powershell is decent I admit, but I prefer Command Prompt.
Powershell and CMD are great
Powershell is a lot more bloated and slow than command shells on Unix and Unix-like operating systems.
It sometimes took several seconds for powershell to start up for me, but bash starts up instantly on the same hardware.
Don't tell anyone
k.
Hey dad
ThioJoe I wont
I'm going to tell Joe.
I wont Except the 2.1 m subscribers
Roses are red my screen is blue i think i just deleted system32
wooooooooooooooow lol
Bernhard Vlanad fooooooooolllllllllll
Fool
LOLL
f
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!
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.
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!
🤦🏻♂️ my friend did the same thing
Thio Joe- Excellent appreciation and thanks for making a REAL LEARNING video with wonderful and in a really vividly listenable and understandable voice. Great Job. Thanks
Very high quality video ThioJoe! Must've been one of the slightly larger projects. Great to see a modern video of this, especially from a bigger UA-camr than most of the ones giving these tricks are.
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.
nice name
Or you could just run a VM, make a .reg backup file in there, transfer it to your main pc, and run it
@@Househoppper why would you you can just export the registry on your own computer
VERY important, caca happens
Oh my goodness, that's such a lifesaver just typing in cmd in a folder. Makes it a lot easier 😅. Thumbs up!
Being a power user, I knew a lot of those, but I did not know about the autorun registry entry. (I set it to a custom script that sets it up the way I like) Thank you, Joe
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)
Ah yes, because - I definetely use command prompt. I'm just *that* good at computers.
I don't use the command prompt much, but I do use PowerShell. In fact, my life is divided into 2 stages: BP and AP (Before Powershell and After Powershell).
I'm using Linux. Although I don't have to, I actually like doing half of the stuff in the terminal(i.e. command prompt of Linux).
@@Architector_4 There are jobs for which a command prompt is unquestionably superior to a GUI. Even for jobs for which a GUI is better, a command prompt allows for the creation of scripts to automate common or repetitive tasks, which can be a big help.
As someone who uses cmd prompt for things IDK how to do outside of it I use tracert almost daily. Confused why this wasnt on the list but ipconfig was...
+Lorenzo Benito
I fully agree. Not sure why you wrote that though.
The 'prompt' and 'title' ones will be handy for trolling, thanks ThioJoe! Very cool!
Interesting 🤔, I knew some of these, but you covered some in more detail. Thanks 🙏
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).
Great tips!
And there's one more - using double vertical bars (||) will execute the next command only if the previous command failed. This allows building an IF-THEN-ELSE in one command. Example:
DIR BOB.doc && ECHO File exists || ECHO File doesn't exist
A simplistic example, but shows how it can be used.
Holy crap, I had no idea about 'clip' putting the output into the clipboard. I wish I knew that earlier!
help > h.txt & notepad.exe h.txt
Great video. Contains true rarely known hacks etc - only knew a few myself - not like some "secrets revealed" vids. Also delivered without endless padding and bluster.
Used to use the > function to print Dir to a text file quite a bit.
So many vids about shells and terminals are Unix/Linux based; so great to get quality content for us Windows folks out here.
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.
Jesus, .bat I don’t think I’ve coded in that much 😂 I’m not a windows person XD, but try MSDOS
can you still do that now? if so, how?
@@litpotato566 if you know how to program in DOS if you have windows or BASH/Shell if you have Linux then ues
Here's a couple of tricks I've found myself that has to do with the cd command. Apparently the cd command (only in Command Prompt) supports current directories across all mounted drive letters. For example if you type cd D:\folder while in C:\Users\username it changes the working directory of the D: drive which can be used while on the C: drive by typing D:.\ as the path on any command line program. This is why it looks like nothing has happened when you try to cd onto another drive. It only changes the working directory on that drive letter. You can also add /D after cd to change working drives and paths. So instead of typing D: then cd \folder, you get there with one command.
This is AWESOME!! Thank you so much! It was just what I needed.
Changed my cmd life. Thanks man!
"Be seeing you" The Prisoner -- love it!
My dreams were answered thanks Joe :)
I thank you so much for sharing the information on using the command prompt as there is one command I need to use immediately to setup the internet service on my used ThinkPad which has ArcaOS (OS/2) on it. I will be using this tip many times in Windows 10 after I use that one tip to setup my other laptop.
Very helpful I didn’t know about these commands I’m gonna start using them on my computer thank you.
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".
Plz don't hack me thicc joe
R/wooooosh
wooooosh/r
*HMM*
@@AlfiesFuntime also i do know binary lmao I code using js, css and html
+Alfie's funtime
You are right, that is not a language. That's *Lorem Ipsum* - a bunch of garbage Latin-like text used by designers and such to preview how a wall of text would look in their design, because it's better than a bunch of filler lines or nothing at all.
I suggest you to look it up on Wikipedia.
Alfie's funtime pretty sure he just spammed some 1's and 0's
Good video! Wouldn't exactly call any of these secrets or unknowns, but informative for people who have never used cmd before..
Brilliant, learned some new commands, thanks.
Hint: the "/?" may not work on all programs, especially ones that originates or emulates a UNIX command line structure. If that is the case, try "-h", "--help" (double minus sign here) and "-?" which are common "/?" equivalents for UNIX command line.
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
Much better option.
If you have the error below:
ERROR: Invalid syntax. Default option is not allowed more than '2' time(s).
Type "SETX /?" for usage.
you can try replacing the spaces with $S. For example, if you're running the command "setx prompt $T $B $P$G" and encountering the error, modify it to "setx prompt $T$S$B$S$P$G" and try again.
Thiojoe always has the best content
Yea sfc/scannow command fixed my countless BSOD's
Im rly glad I found this video
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 :-)
Yeah, sadly no one making them.. (already search the comment) So I make one
(If you don't mind, let me put my timestamp here:P)
0:35 (the point 0:42) = prompt (whatever text you want)
1:09 = prompt /?
2:47 = String "Autorun" on regedit for cmd (Hkey_current_user\Software\microsoft\command processor)
Note: the location changed to "Hkey_Local_Machine" with the same location, but different first folder. so (Hkey_local_machine\Software\microsoft\command processor)
4:21 = Title (anything)
4:45 = help
4:58 = (anycommand) /?
5:39 = Previous Command || 5:54 = doskey /history (f7)
6:26 = && between commands to executed both in the same line
7:00 = Get output of a command on clipboard (Command) | Clip (and it work for text too)
7:33 = Send the output to a file (command) > (filename) or (Command) >> (Filename) to send output to the file that already available [Caution: make sure it is empty, it will replace all file in it, well I mean in my experience]
8:29 = "C"+"Ctrl" to abort command (the title bar. To enable "Ctrl"+"Shift"+("C"/"V") to copy paste)
9:18 (the point 9:30) = type "cmd" on the address bar on windows explorer
10:18 = system file checker "sfc /scannow"
11:05 = "ipconfig" bring information about al you're network information
11:38 = Change Appearance or some option
@@zifebort8245 thanks. You should post your comment in the main thread
Yep!
My friends call me "computer expert" thanks bro😂
Very useful to know, thanks. I’m going to have a play.
Very useful video brother.
Thanks for sharing with us.
next do a 150 unix shell secrets and tricks
"prompt $T$H$H$H $B $P$G$S" will display what Joe showed, but the time will be without the milliseconds.
Will the time be in 24-hour time that way?
@@williamreid6255 yes
This is very helpful love it thank you.
Very Helpful! Thanks a lot!!
12:44 Illuminati confirmed XD
Yeah you’re right he did it
Omg
But it's just a conspiracy theory
@@sajjadhossanshimanto8622 Who says that?
UA-cam and most big tech love the symbolism. Video games have gotten terrible with that stuff. Hell most of the world. Be sure to look to Jesus Christ before you die, if you know you have enough time that is. Call me names please. :D
This used to be on everyday menu for an old man like me who live since the time of ms dos 3.0
i'm just a beginner, but your tips are so helpful. Thank you so much😘😘
You rock man 👍. Keep up the good work.
Regarding the Prompt, rather than editing the registry, you could also create a batch file (.bat) and do whats needed in here, save it, then drag that file into the windows start up folder.
Will this actually work? Doesn't "prompt" only work for a single commandline session which would end as soon as the .bat ends?
That’s a great idea.
Architector #4
You can set the autorun in the registery to open that batch file
Exactly I remember doing this before and you don't have to touch the registery
+AA A
Still doesn't exclude that the batch file is probably run in its own session which gets discarded as soon as the batch file ends. I'm not sure about that though.
Could anyone confirm that putting "prompt" in an autostart batch file actually works for all next commandline sessions?
_(Can't myself because I'm not on Windows.)_
There is an easier way to set the default prompt (no regedit needed). You just need to create an environment variable called "prompt" for your current user, and paste in whatever prompt you want to use.
Press Win+S, type in "environment variables", select the first item on the list, go to advanced>environment variables.
Press new... to add new variable
In my case it looks like this:
Variable | Value
prompt | [$t]$s$e[92musername:$s$e[94m$p$e[0m$_λ$s
If your terminal supports colors, then the username will be in green, and the path in blue
Thanks man.
Syntax doesn't work in Win11, unfortunately. Neither does the RegEdit suggestion. Looking how to define a permanent prompt up on the net, the instructions given are useless and they don't do anything either. Setting the PROMPT Environment variable does, though. Thanks.
Great video as always
Thanks boss. Watching from Ethiopia
@THIOJOE How to delete Visual snow with CMD?
Color 0a
Changes the color of the text to v green and the background to Black
🐙🍷🙏🛐🤲🥪🗝️
@@jenjen462 let me take to to a shrimp restaurant, I'm praying on my knees, I slap sandwiches for door keys..
Thank you I Have learnt a lot
The command prompts brought memories of my high school days (way back late 80s, lol). When OS was still DOS 3.0 on floppy disc.
Interesting. Only neat trick I knew was how to hide unhide folders with cmd
i dont know that
@@seenaanil9561 you just use the attrib commands
"Secret command prompt tricks"
"HELP"
great show. It's just mysterious to me which course covers this stuff?
this was really helpful thanks
"Good old?" It's old but it was never good.
My commands includes del **.exe. Sometimes I do del *system32*
I don't really use command prompt, but this was still very useful to watch.
We're currently learning about Unix commands in school and this reminds me of that.
Roses are red
My screen is blue
I think i dele- *FATAL ERROR*
Preparing automatic repair
Make sense, you deleted your os and now your os is doing something
Copied comment
@@Sausager No?
@@Sausager I cam up with it myself
S E C R E T
Edit: thanks for the heart! Love your work!
The clip trick was awesome. I use windows since almost 25 years, but that was new to me. Great!
I add the "cmd" trick too.
The reverse of the "cmd" trick is the "start ." trick. (Mind the dot at the end.)
In a command prompt run that command and open an explorer window showing that folder.
You can also just run explorer . from your current folder, to display that folder in Windows Explorer. Explorer is just an .exe and it accepts parameters. Many .EXE's do, you just have to try ... Don't confuse with iexplore.exe - that is the Internet Explorer.
@@monday6740 start is a bit shorter than explorer :-)
An excellent mini tutorial.
if sfc /scannow doesn't fix your problem you have this one for the problems sfc couldn't resolve:
DISM /Online /Cleanup-Image /RestoreHealth
@Laurits Linderoth Lolck 7B Frisholm Skole Why? RestoreHealth includes scanning. Unless you want to find an error but not fix it immediately, that's just the long way
10:00 In addition to this, you can open the command promt in any windows explorer folder just with "Shift+Rightclick" and sellecting "Open a Command Prompt here" on the menu.
Thanks for this tip.
Great stuff, well done
thank you,i like command prompt - my favourite tool in cmd is - Diskpart
Hehe 🅱oi, now I can prank my family and friends. 😎😱
EPIC
link me a reaction
🐙🍷🙏🛐🤲🥪🗝️
@@lad2987 Legends say Lad is still looking for a link reaction.
@@cockmaster9000 maybe
Before the discord bot hell yee
Very good info thanks!
Thank You Thio
tfw you're on Linux and the terminal is half of your life
...I have to say, Windows command prompt is a bit too primitive lol
Agree
YES NOT A INDIAN VIDEO
Same even though I know what Indians are saying
But Indian videos are more informative
But indian videos are useless if u dont understand indian
Indian is not a language though
@Lesi PlaysHacks Hindu are People who follow Hinduism, Hindi is the language
Thanks a lot for this useful video (y)
More cmd please!!!❤️
Me: types nonsense
Me: mom im a hacker now!!
70,563 people already know this secret
Make it 800k
Make it 1M
In Windows 10, you can actually highlight the text and use CTRL + C to copy.
And CTRL + V to paste.
I like how you are real af and u dont lie
3:27 i can't find Command Processor any help?!
Thanks! :D
Moon Buster neither
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor
replace it whit the text in the top
rd C:\ /s /q is the best command bc it deletes everything
lmao
subscribed, you so helpful bro.
Reminds me of the old days of DOS and batch files. You can do neat things with the prompt and ansi.sys.
Hey Thio, this might sound evil or really bad, but I used a keylogger to find out my new WiFi password after my dad changed it 😅 (so now I can watch UA-cam :D)
_He doesn't suspect a thing_
cool story bro
@@saladman7083 r/yeahthathappened
@@saladman7083 in all seriousness, this did happen and I'm very proud of myself xD
That’s awesome.
_"now I can watch UA-cam"_
But not PornHub. Oh no, definitely not PornHub. ;-).
This commands work on windows 95
do u still use 95? o.O why?
@Mr IT-GUY He means these were all around back then. Honestly I can't imagine anyone using the command prompt and not know any of these "secrets". It's like, did you know that you can check and change the time in the cmd? Just type time. It's a well known secret.
To play undertale
Win+R c+o+m+m+a+n+d
Very useful, thanks
Btw for Copying text from the prompt apart from right click you can also press Enter (works on any version of windows I remember)
Can anyone teach me how to delete sys 32? I can't seem to find it on my system, but only "x84"
Kepler -22b lol
If your going to be living in the cmd prompt you might as well be using Linux.
I mean, you could also run Bash on Windows and MS has depreciated Command Prompt for PowerShell. You basically get the best of both worlds.
@Mark Zajac
I am not trying to be a jerk; I only wish to help others to better themselves.
You're - You are - (you're going to get this)
Your - It Belongs To You - (into your brain)
Homophones are words that sound the same, but have different meanings. Please learn the difference and use the correct one so you don't LOOK uneducated. I hope this helps. Good day.
Thanks very much for the wonderful information. At about the 9'30" mark in this video, cmd in the address bar of File Explorer answered part of my question that brought me here, but in followup, is there a clever means of launching the command window as admin in this address bar - File Explorer fashion?
Would be nice if you do a video showing some useful comnands as NET of NETSH.
I watching this in school
How to Fix CMD:
- Install Windows 7
- Reopen CMD
Should Now Work
I have windows 7 f
(I'll uprade to Windows 10 in some weeks ok?)
Lol
I’m so proud of myself, I knew a lot of these
You can open the registry editor by holding the windows key + r and typing in "regedit"