With an interface as attractive as Windows 10’s, it is easy to forget that the OS comes with a command line interface as well. You might have forgotten about Command Prompt, but Microsoft hasn’t, and it has brought some handy improvements to Command Prompt with Windows 10 and Windows 11. While it’s not as powerful as its Unix counterpart, there are many Command Prompt tricks that can make it a helpful tool to have. A lot of things that the Command Prompt (also known as CMD) can let you do are not even available in the GUI of the Windows OS, so it’s something you should be using. In this article, we have listed 20+ Command Prompt tricks that you should know in 2024.
If you’re new to Windows, we suggest glancing at our Windows 10 beginner tips article to get a better idea about how the OS works and its features. Now, let’s dive in and check out what you can do with Command Prompt.
1. Encrypt Files Using Command Prompt
One of the most useful things that you can do using the Command Prompt, is encrypting your sensitive data. Encryption is a way to prevent others from taking a peek at your data, and it’s a really important part of ensuring (to some extent, at least), that your files are only yours. With this simple Command Prompt trick, you can easily encrypt files on your Windows PC.
- Launch the Command Prompt, and change your working directory to the folder where your files are. This can be done by using the “cd” command.
- Once you’re done, type “Cipher /E“, and hit Enter. This will encrypt all the files that were inside the folder.
Note: If you try and open these encrypted files, they will open normally for you, however, any other user will not be able to view the files, unless they log in using your account. So make sure that you have a password set.
2. Change the Color of the Command Prompt Window
The Command Prompt window can be unexciting with the default black background and light gray text color. But Windows does allow you to change these colors to suit yourself and make things a bit more intriguing.
- Launch CMD and Right-click on the title bar
- Click on “Properties” and in the separate window that opens, click on “Colors”`
- Here you can choose the colors for the screen text or background as well as for the popup text and background, and also change the transparency of the CMD window
- After you’re done choosing the most fitting colors for your personality, Click OK
Note: There are a lot of other colors available, and you can check out the entire list by typing “help color“.
3. Change the Prompt Text in Command Prompt
When you first open Command Prompt, the default text of the prompt is very boring. It does reflect the current working directory that the user is in, but it sure could use some customization. If you would like the prompt in your cmd window to say something other than the default, you can use the following trick.
- Launch Command Prompt, and type “prompt” followed by the text that you want. Make sure you add “$G” to the end, to ensure that there is always the “>” sign at the end of the prompt, and you know where your command begins at.
- Hit Enter, and you will see the prompt in the cmd window change to your custom text.
Note: There are some more options like “$G” available, and you check out the entire list by typing “help prompt“. Also, you can reset the prompt back to its original state by typing “prompt” and hitting Enter.
4. Change the Title of the Command Prompt Window
When you launch Command Prompt, you must have seen that the title bar reads “Command Prompt”, or maybe “Administrator Command Prompt”, if you launch it with Administrator privileges. While that is okay, but if you have a lot of cmd windows open, and each of them are working on a different task, then this “Command Prompt” title is not helpful at all. Fortunately, you can change that too.
- Open Command Prompt, and type “title”, followed by the text that you want the Title bar to read.
- Hit Enter, and you will see the Title of the cmd window change to the text that you entered.
Note: The title changes back to “Command Prompt” once you quit cmd and relaunch it.
5. List Every Driver Installed on Your Windows 10 PC
If you’re trying to troubleshoot an issue or merely looking for a list of all the drivers on Windows 10/11, there’s a command prompt trick you can use. Follow the steps below to see the list of drivers:
- Type in driverquery /FO list /v in CMD, and you will see a list of drivers on your screen.
- If you want, you can also copy this output into a text file for easy viewing later. Use this command to save the drivers list to a document:
driverquery > C:\Users\YourUsername\Desktop\driver.txt
6. F1 to F9 Keys are Shortcuts in CMD
All the function keys on your keyboard are also shortcuts for various Command Prompt functions. Here’s what each function key on your keyboard does in CMD:
- F1: Tap or hold this key to retype your last command letter by letter.
- F2: Copies the current command up to a specified character.
- F3: Retypes the entire previous line
- F4: Auto-deletes the current command up to a specified character.
- F5: Similar to F3, but lets you cycle through previous commands.
- F6: Enters the EOF indicator into CMD.
- F7: Opens a list of previously entered commands.
- F8: Similar to F5, but doesn’t stop at the end of your command history in the session. Instead, it goes all the way to the start.
- F9: Enters a previous command by entering a number associated with that line.
7. Hide Folders using Command Prompt
While there is an easy way to hide folders on Windows by using the properties pane of the folder and checking the checkbox that says “Hidden”, the method is not very useful as the folders hidden using this method can easily be viewed if the view options are changed to “Show hidden files and folders”, making it a pretty useless feature. However, just like you can hide folders using Terminal on Mac, using this cmd trick, you can hide your folders in such a way that they will be completely hidden, and Explorer won’t be able to display them at all. Simply follow the steps outlined below:
- Launch Command Prompt, and navigate to the directory where your target folder resides.
- Type “Attrib +h +s +r folder_name“, replacing the “folder_name” with the name of the folder that you want to hide, and press Enter.
- You can now check that the folder is indeed hidden inside Windows Explorer and can not be seen by anyone.
- To unhide the folder, you can use the command “Attrib -h -s -r folder_name“.
Note: Hidden folders can be viewed using the cmd command “dir /AH”.
8. Copy Command Output to Clipboard
If you have ever tried to copy stuff off the Command Prompt, you must have realized that it is exceedingly difficult, not to mention un-intuitive. However, with this simple trick you can copy the output of any command that you want, directly to your computer’s clipboard, and you can then paste it into any text editor that you want.
- Launch Command Prompt and type the command that you want to copy the output for, followed by “| clip“. For example, I’m using the command “ipconfig | clip“. Hit Enter, and you will see that the cmd window shows no output.
- Open a text editor, such as Notepad, and press Control + V, and you can simply paste the output of the command directly inside Notepad.
9. List all Installed Programs
Another cool trick on the Command Prompt involves listing out all of the Windows 10 apps and programs that are installed on your PC. This is particularly helpful if you need to uninstall a program using the Command Prompt. To list out all the installed programs, simply follow the steps outlined below:
- Launch Command Prompt, and type “wmic product get name“.
- Hit Enter, and you will see a list of all the programs that are installed on your PC.
You can also use wmic to uninstall programs, directly from the cmd window. Simply type “wmic product where “name like ‘%NAMEOFAPP%’” call uninstall /nointeractive” and hit Enter. Obviously, replace “NAMEOFAPP” with the name of the app that you want to uninstall from your PC.
10. Open CMD Window Inside a Directory
Let’s face it, the way Windows handles changing directories using the “cd” command is rather weird. Fortunately, there is a simple way to open Command Prompt windows inside a directory so you don’t have to change directories. This is a really handy trick, especially if the folders you want to access are buried deep inside the filesystem. To open a cmd window inside a directory, just follow the steps below:
- Open the directory in Windows Explorer. In the address bar, type “cmd”, and hit Enter.
- A command window will open inside the directory you had opened in Windows Explorer.
11. Generate Battery Health Report
Windows 10 lets you track vital stats related to the battery’s health by maintaining data related to the battery. This includes stats like factory specifications, full battery capacity, and the current capacity and these are updated with each session. You can generate a report about these stats by using a CMD command, which can be executed as follows:
- Launch Command Prompt as an Administrator or change directory using cd C:\Windows\System32
- Enter command powercfg/energy
- The system will take 60 seconds to analyze and then generate a report in form of an HTML documents
- To access the report, you can head to this location on your Windows 10 computer:
C:\Windows\system32\energy-report.html
As you can see in our laptop’s case, the battery’s capacity has dropped to 82% to what it was shipped with. If you want a step-by-step direction for generating battery health on Windows, click on the link to read the article.
12. Hide Sensitive RAR Files in Images
CMD facilitates a command which lets you concatenate or fuse two files into a single file. While this command comes in handy in merging the contents of basic file types such as TXT or CSV, you can also use the command to hide a RAR, ZIP, or another archived file inside an image or text file. To achieve this, follow these steps:
- Open CMD in the directory which contains both files using the 10th item in this list or use the cd command to change the directory
- Use command copy /b <RAR_filename>.rar + <image_filename>.<extension> <result_filename>.<extension>.
- In our case, we used copy /b modules.rar+wave.png test2.png
Note: make sure you enter the RAR file first followed by the other file, else you won’t be able to recover the RAR package. The method also works on most common file types including documents and PDFs as long as you add the archive file first.
- This will generate the result file, which in our case is test2.png
This PNG file displays as a normal image file but when you open it with WinRAR or any other extraction tool, it will extract the RAR file which is buried under the image file. This is a good way of saving your sensitive files from curious friends or co-workers or even prevent them from being misused even in case of a data breach.
13. Abort Command Execution
This is one of the best Command Prompt tricks and everyone should know about it. Say, you want to run a specific command but accidentally execute a different command. In that case, to quickly stop the command execution, simply press “Ctrl +C” together and the operation will be aborted instantly.
14. Always Run Command Prompt as Administrator
For users who deal with system files and applications know that they always need elevated privileges to tweak and move around things. But on the other hand, Command Prompt always defaults to the normal account which makes it harder for users to gain Administrator access in the middle of an operation. So to save yourself from such situations, you can change the behavior permanently and run Command Prompt with Administrator privilege always.
- Just search for “cmd” in the Start menu and right-click on it. After that, open its file location.
- Now copy the Command Prompt shortcut to your desktop.
- Move to desktop and right-click on the shortcut and open “Properties”.
- Here, click on Advanced and enable “Run as administrator”.
- Now onwards, open CMD from the desktop shortcut and it will always start with the Administrator privilege.
15. SFC /Scannow
SFC (System File Checker) is a relatively new addition to Command Prompt to keep your computer clean and bug-free. It’s a handy command-line tool that will help you fix many system issues. Just run sfc /scannow
on Command Prompt and it will start verifying the integrity of all protected system files. Further, it will also repair the damaged files wherever possible. So in the future, if you face any issue, make sure to run this command on your Windows computer.
16. Find Information About Commands
Sometimes we run a command to achieve a certain task, but don’t know much about it. So to learn about specific commands, add /?
at the end of any command, and hit enter. Command Prompt will give you a good overview of its usage and syntax. Take an example of SFC from the above point, type sfc /?
and hit enter. It will tell you the sub-commands with examples, and what are the other commands related to SFC in a lucid language. This command is similar to the “man” command in Linux.
17. Command Line History
Many users are aware of the ‘UP’ navigation key to move forth and back between commands, but circling back to previous commands that were executed way back is difficult. However, there is the doskey /history
command to check all your executed commands in a chronological list. The con is you can’t select the commands and execute them instantly and will have to type it out manually, which is not the best solution.
As a result, if you want to quickly navigate through all your past commands with the ability to execute them immediately, just press the F7 key. You will get a separate window where you can choose a command and execute it then and there. It’s one of the best Command Prompt tricks. Keep in mind, some users need to press the “Fn” key along with F7 to trigger this action.
18. Delete Temp Files to Clear Space
If you’re running low on space and urgently need to clear some trash out, getting rid of temporary files on your PC might be the swiftest action plan. Here’s what you can do to clean out temp files from your PC and regain a considerable amount of space.
- Use the command del /q /f /s %temp%\*
- Use the command del /s /q C:\Windows\temp\* (requires admin privileges)
- You can also use both the commands in one go by typing del /q /f /s %temp%\* && del /s /q C:\Windows\temp\*
19. Play an RPG Game in Command Prompt
Do you like playing role-playing games? If so, you should definitely check out Ateraan, which is a text-only role-playing game that works inside the command prompt on your Windows PC.
- Type the command telnet ateraan.com 4002 into CMD and press enter. That will launch the game, and you can create your character and start your journey. GLHF!
20. Move to Windows Terminal
Command Prompt is one of the oldest Windows programs, but recently Microsoft announced a universal command-line tool for Windows that integrrated Powershell, WSL, and Command Prompt at once place; The program’s called the Windows Terminal. One of the advantages of running Command Prompt in Windows Terminla is you get the ability to run multiple tabs to execute multiple commands in the same Window. If you’re wondering how to try out the new Windows Terminal, refer to our guide on the same.
21. View a Directory’s Structure
Using the dir command to get an idea about the structure of a directory could be a hard affair since the command isn’t very presentable. Hence, if you want to look at a directory’s structure in a more neat and precise way, use the tree command. Here’s how the command looks.
tree
The command will show you the structure of your default directory “C:” If you want to check the structure of other drives, use the drive letter followd by a colon after typing the command.
tree A:
Windows обладает невероятным графическим пользовательским интерфейсом, которого, однако, часто будет недостаточно для выполнения некоторых задач.
Поэтому, если ваш внутренний Оливер Твист хочет большего, то вам следует получше изучить функционал командной строки.
С помощью командной строки вы можете получить доступ к функциям, которые недоступны в графическом интерфейсе, и можете взаимодействовать с операционной системой Windows напрямую.
В этой статье я собираюсь рассказать вам о 14 хитростях командной строки, которые помогут вам почувствовать себя суперчеловеком при работе с компьютером и которые, однозначно, впечатлят ваших друзей.
Имейте в виду, что нужно быть очень осторожным при выполнении каких-либо команд в командной строке, потому что любая из них может иметь долгосрочные последствия для вашего компьютера.
Оглавление
- Как открыть командную строку в любой папке
- Как создать защищенную папку с помощью командной строки
- Как запустить командную строку от имени администратора
- Как шифровать файлы с помощью командной строки
- Как скрыть папку с помощью командной строки
- Как изменить цвет фона и цвет шрифта командной строки
- Как изменить заголовок окна командной строки
- Как изменить текст командной строки
- Как изменить размер шрифта текстов командной строки
- Как сформировать отчет о состоянии аккумулятора с помощью командной строки
- Как перейти на веб-сайт из командной строки
- Как проверить IP-адрес веб-сайта с помощью командной строки
- Как показать все пароли Wi-Fi-сетей с помощью командной строки
- Как выключить компьютер с помощью командной строки
1. Как открыть командную строку в любой папке
Не все любят использовать навигацию по папкам через командную строку.
Однако, если вы один из тех, кому это нравится, то вы можете открыть папку прямо из командной строки, набрав cmd
в адресной строке папки, а затем нажав ENTER.
Вот видите!
2. Как создать защищенную папку с помощью командной строки
Из соображений конфиденциальности вы можете создать папку, которую не сможет редактировать, перемещать, копировать или удалять любой случайный человек, получивший доступ к вашему компьютеру.
Для этого вам необходимо перейти в каталог, в котором вы хотите создать папку, или откройте в нем командную строку, используя первый пункт. Затем выполните команду md aux
.
Это действие создаст папку с именем «aux». Ее нельзя будет удалить, отредактировать, переместить или скопировать.
Если вдруг вы не можете найти папку, обновите каталог, в котором вы создали папку.
Итак, что же делать, если вы хотите удалить эту папку? Вы не сможете это сделать через графический интерфейс, вам придется это делать через командную строку. Чтобы удалить папку, выполните команду rd aux
. При этом убедитесь, что вы скопировали файлы в папке.
3. Как запустить командную строку от имени администратора
Может возникнуть ситуация, когда вам потребуются права администратора, но у вас не будет доступа к графическому интерфейсу.
Чтобы получить права администратора, введите powershell "start cmd -v runAs
и нажмите ENTER. Выберите «Да» в следующем диалоговом окне, и откроется новое окно командной строки с правами администратора.
4. Как шифровать файлы с помощью командной строки
Если вы не единственный пользователь компьютера с Windows 10 и хотите, чтобы некоторые файлы были недоступны для других пользователей, то вы можете зашифровать эти файлы, перейдя в папку с файлами и введя Cipher /E
.
Теперь ни один пользователь, кроме вас, не сможет открыть эти файлы.
5. Как скрыть папку с помощью командной строки
Что делать, если вы хотите скрыть папку? Вы можете сделать это, набрав attrib +h +s +r имя_папки
, затем нажав ENTER.
Чтобы снова отобразить папку, выполните команду attrib -h -s -r имя_папки
.
6. Как изменить цвет фона и цвет шрифта командной строки
Если старомодные черно-белые цвета командной строки вам наскучили, то вы можете изменить их на желаемую цветовую гамму.
Для этого запустите командную строку и введите color -help
. Вам откроются доступные цвета, представленные с помощью цифр и букв. Вы можете поменять цвет фона и шрифта.
Чтобы правильно изменить цвета, запустите color номер_цвета_фона номер_цвеат_шрифта
. Например, при вводе color 02
цвет фона останется черным, а цвет шрифта изменяется на зеленый.
7. Как изменить заголовок окна командной строки
Заголовок окна командной строки не обязательно должен оставаться таким, каким был по умолчанию. Вы можете его изменить.
Для этого введите title заголовок_окна
.
8. Как изменить текст командной строки
Текст, появляющийся перед вводом команд, может показаться вам недостаточно привлекательным. Для меня это именно так, поэтому я его изменил.
Чтобы изменить текст командной строки, введите команду prompt имя_команды $G
и нажмите ENTER.
«$G» рядом с указанным именем команды добавляет символ «больше» (>), чтобы можно было определить, где начинается команда – лучшая система отображения данных для вас вашими же руками!
9. Как изменить размер шрифта текстов командной строки
Если шрифт командной строки вам кажется мелким, то вы можете его изменить. Для этого даже не нужно запускать команду.
Шаг 1: щелкните правой кнопкой мыши окно командной строки и выберите «Properties» («Свойства»).
Шаг 2: перейдите во вкладку «Font» («Шрифт») и выберите нужный размер шрифта, затем нажмите «Ок».
10. Как создать отчет о состоянии аккумулятора с помощью командной строки
Благодаря этой команде вы можете узнать, в каком состоянии находится аккумулятор вашего ноутбука и что можно сделать, чтобы улучшить ее. На самом деле, это моя любимая команда.
Чтобы сформировать отчет о состоянии аккумулятора, убедитесь, что вы запустили командную строку от имени администратора. Затем введите команду powercfg/energy
и нажмите ENTER.
HTML-файл, который вы можете открыть в браузере, будет создан за 60 секунд.
Файл вы можете найти в C:Windowssystem32energy-report.htm
l.
11. Как перейти на веб-сайт из командной строки
Из командной строки можно открыть веб-сайт, введя start www.имя_веб-сайта.com
и нажав ENTER. После этого сайт откроется в вашем браузере, установленном как браузер по умолчанию.
Обратите внимание, что нужно обязательно добавить «www» перед доменным именем, иначе эта команда не сработает.
12. Как проверить IP-адрес веб-сайта с помощью командной строки
Вы можете проверить IP-адрес любого веб-сайта, набрав www.имя_веб-сайта.com
и нажав ENTER.
Обратите внимание, что нужно обязательно добавить «www» перед доменным именем, иначе эта команда не сработает.
13. Как показать все пароли Wi-Fi-сетей с помощью командной строки
У вас есть возможность проверить пароль вашего текущего Wi-Fi-соединения с помощью графического интерфейса. А командная строка может показать пароли всех Wi-Fi-сетей, которые когда-либо подключались к вашему компьютеру.
Чтобы это сделать, выполните команду for /f "skip=9 tokens=1,2 delims=:" %i in ('netsh wlan show profiles') do @echo %j | findstr -i -v echo | netsh wlan show profiles %j key=clear
и нажмите ENTER.
Пароль (ключ) вы сможете найти после надписи «Key content».
14. Как выключить компьютер с помощью командной строки
Теперь, когда вы узнали об 11 полезных командах, которые заставят вас почувствовать себя суперчеловеком, вот вам еще одна: с помощью командной строки можно выключить или перезагрузить компьютер.
Чтобы выключить компьютер с помощью командной строки, введите команду shutdown -s
. чтобы перезагрузить компьютер, введите shutdown -r
и нажмите ENTER.
Чтобы установить обратный отсчет до выключения компьютера, введите shutdown /s /t время_в_секундах
и нажмите ENTER.
Чтобы установить обратный отсчет, а также предупреждающее сообщение о том, что ваш компьютер выключится, введите shutdown /s /t время_в_секундах /c “предупреждающее_сообщение”
и нажмите ENTER.
Today, I will share the 100+ best CMD tricks you should know. Command Prompt may seem like an old feature of Windows computers. But it is an extremely powerful tool that your PC has. There are so many programs out there that need you to type down some CMD commands to run it. Then why not be a master at it?
Well, just to help you in mastering the CMD, I have shared these command prompt tricks. These tricks will definitely help you to become a CMD ninja at no time. So let’s head into the topic without wasting time.
Must Read: Best IPTV Players for Windows
Contents
- 1 Best CMD Tricks For Windows 11/10/8/7 PC
- 1.1 The Ultimate List of Best Command Prompt Tricks
- 2 Final Words
Best CMD Tricks For Windows 11/10/8/7 PC
1. Getting help
We often feel a need for help with the CMD commands. And performing a Google search for each of those CMD commands can be a pretty hectic task. However, thankfully there is a little CMD trick that will help you to get help for a specific CMD command.
Just add the “ /? ” after the command that you know about and hit enter. Then this command will help you to understand what a specific command does.
2. Check The IP Address Of A Website
This one is one of the best CMD tricks that you can try. There are often when website developers do feel a need to know the IP address of their website.
In such cases, a little CMD command helps a lot. Since checking the IP Address by going to different websites can be challenging. Instead, you can type this command: nslookup website.com
3. Execute Multiple Domains One By One
Want to execute multiple domains one by one? Well, then this command would be pretty handy for you. There are lots of programs that need CMD to get installed on a computer.
So, if you want to run multiple commands at once, relax a bit. Then you can put && between two CMD commands and hit the enter button.
After that, CMD will automatically execute the courses one by one. Plus, you do not have to enter commands again and again. Here is an example of the command: doskey /history&&driverquery
4. Repair the System Files
We all know fact that Windows’s system files often get corrupted. And installing windows, again and again, is a pretty boring task. But thankfully, you can repair system files by running a simple command. This is also one of the best CMD tricks one should know.
Simply type “sfc/scannow” and hit enter, and it will immediately start the scanning and repair process. However, you should open CMD with Administrator rights to execute the code.
5. Function Keys
The function keys are a set of keys on your keyboard that can be used to perform specific tasks in CMD. Here are some of the most useful ones:
- F1: F1 Key prints the characters one by one of your last-used commands.
- F2: This command help in pasting the last used command. However, it only works for some specific commands.
- F3: F3 pastes the last used command and works with every command.
- F4: F4 helps delete commands, but it works only for some specific commands.
- F5: F5 Key pastes the last used code without cycling.
- F6: F6 helps in pasting the ^Z code.
- F7: F7 key displays all the previously used commands.
- F8: F8 key pastes all the cycle-able used commands.
- F9: F9 key lets you paste commands from the list of recently used commands.
6. See PC driver list
Want to know which drivers are installed on your computer? Well, you can use a simple command to learn about it. Simply type down “driverquery” command, and you will get the list of all the installed drivers on your computer.
7. Change the Color of the Command Prompt
Do you know that you can even change the color of your command prompt? Well, for this you have to right-click on the command prompt window. Then go to properties and select a color.
8. Change Font Color
You can also change the font color of your command prompt. For this, you have to use commands like:
- color 1
- color 2
- color 3
- color 4
- color 5
and so on.
9. Command History
Looking for a command that you have previously used but can’t remember now? Well, then try the doskey /history command. This will offer you a list of all the previously used commands.
10. Shut Down the Computer With CMD
You can also shut down, restart, and log off your computer using CMD commands. To do so, here are the commands that you have to use
- For Shutdown: shutdown -s
- For Restarting: shutdown -r
- For Logoff: shutdown -l
11. Create a WiFi Hotspot
You can also take help from CMD to create a wifi hotspot and share the internet with other devices. However, it is a little lengthy process.
- First of all, you have to enter this command “netsh wlan set hostednetwork mode=allow ssid=HotspotName key=Password” in the CMD.
- Now enter any name in the ‘HotspotName’ section and enter a password in the ‘Password’ section.
- Now to start the WiFi hotspot, you have to type the “netsh wlan start hostednetwork” command. Also, to switch off the WiFi hotspot, you must use the “netsh wlan stop hostednetwork” command.
The Ultimate List of Best Command Prompt Tricks
Apart from these commands, many of the best CMD tricks are available. You can learn more about them by going through this list.
1. Character Map – charmap
2. Bluetooth Transfer Wizard – fsquirt
3. Calculator – calc
4. Accessibility Wizard – accwiz
5. Administrative Tools – control admintools
6. Automatic Updates – wuaucpl.cpl
7. Add/Remove Programs – appwiz.cpl
8. Add Hardware Wizard – hdwwiz.cpl
9. Certificate Manager – certmgr.msc
10. Check Disk Utility – chkdsk
11. Clipboard Viewer – clipbrd
12. Control Panel – control
13. Component Services – dcomcnfg
14. Computer Management – compmgmt.msc
15. DDE Shares – ddeshare
16. Command Prompt – cmd
17. Date and Time Properties – timedate.cpl
18. Device Manager – devmgmt.msc
19. Direct X Troubleshooter – dxdiag
20. Disk Cleanup Utility – cleanmgr
21. Disk Defragment – dfrg.msc
22. Disk Management – diskmgmt.msc
23. Disk Partition Manager – diskpart
24. Display Properties – control desktop
25. Display Properties – desk.cpl
26. Dr. Watson System Troubleshooting Utility – drwtsn32
27. Driver Verifier Utility – verifier
28. Event Viewer – eventvwr.msc
29. Files and Settings Transfer Tool – migwiz
30. File Signature Verification Tool – sigverif
31. Findfast – findfast.cpl
32. Firefox – firefox
33. Folders Properties – control folders
34. Fonts – control fonts
35. Fonts Folder – fonts
36. Free Cell Card Game – freecell
37. Game Controllers – joy.cpl | Best CMD Commands 2017
38. Group Policy Editor (for xp professional) – gpedit.msc
39. Hearts Card Game – mshearts
40. Help and Support – helpctr
41. HyperTerminal – hypertrm
42. Iexpress Wizard – iexpress
43. Indexing Service – ciadv.msc
44. Internet Connection Wizard – icwconn1
45. Internet Explorer – iexplore
46. Internet Properties – inetcpl.cpl
47. Keyboard Properties – control keyboard
48. Local Security Settings – secpol.msc
49. Local Users and Groups – lusrmgr.msc
50. Logs You Out Of Windows – logoff
51. Malicious Software Removal Tool – mrt
52. Microsoft Chat – winchat
53. Microsoft Movie Maker – moviemk
54. Microsoft Paint – mspaint
55 Microsoft Syncronization Tool – mobsync
56. Minesweeper Game – winmine
57. Mouse Properties – control mouse
58. Mouse Properties – main.cpl
59. Netmeeting – conf
60. Network Connections – control netconnections
61. Network Connections – ncpa.cpl
62. Network Setup Wizard – netsetup.cpl
63. Notepad – notepad
64. Object Packager – packager
65. ODBC Data Source Administrator – odbccp32.cpl
66. On Screen Keyboard – osk
67. Outlook Express – msimn
68. Paint – pbrush
69. Password Properties – password.cpl
70. Performance Monitor – perfmon.msc
71. Performance Monitor – perfmon
72. Phone and Modem Options – telephon.cpl
73. Phone Dialer – dialer
74. Pinball Game – pinball
75. Power Configuration – powercfg.cpl
76. Printers and Faxes – control printers
77. Printers Folder – printers
78. Regional Settings – intl.cpl
79 Registry Editor – regedit
80. Registry Editor – regedit32
81. Remote Access Phonebook – rasphone
82. Remote Desktop – mstsc
83. Removable Storage – ntmsmgr.msc
84. Removable Storage Operator Requests – ntmsoprq.msc
85. Resultant Set of Policy (for xp professional) – rsop.msc
86. Scanners and Cameras – sticpl.cpl
87. Scheduled Tasks – control schedtasks
88. Security Center – wscui.cpl
89. Services – services.msc
90. Shared Folders – fsmgmt.msc
91. Shuts Down Windows – shutdown
92. Sounds and Audio – mmsys.cpl
93. Spider Solitare Card Game – spider
94. SQL Client Configuration – cliconfg
95. System Configuration Editor – sysedit
96. System Configuration Utility – msconfig
97. System Information – msinfo32
98. System Properties – sysdm.cpl
99. Task Manager – taskmgr
100. TCP Tester – tcptest
101. Telnet Client – telnet
102. User Account Management – nusrmgr.cpl
103. Utility Manager – utilman
104. Windows Address Book – wab
105. Windows Address Book Import Utility – wabmig
106. Windows Explorer – explorer.
107. Managing the Boot Configuration Data – bcdedit
108. Editing Boot Settings – bootcfg
109. Encrypting or Decrypting Files/folders – cipher
110. Clearing the screen – cls
111. Managing stored usernames/passwords – cmdkey
112. Changing CMD Color – color
113. Compressing one or more files – compress
114. Converting FAT drives to NTFS – convert
115. Delete files – del
116. Deleting User Profiles – delprof
117. Displaying the list of files and folders – dir
118. Displaying Message On Screen – echo
119. Deleting one or more files – erase
120. Opening the windows Explorer – explorer
121. Formatting a disk – format
122. Knowing file extension – ftype
123. Displaying the Mac Address – getmac
124. Online help – help
125. Displaying the host name – hostname
126. Editing disc label – label
127. Log a user off – logoff
128. Get a log time in a file – logtime
129. Creating .cab files – makecab
130. Creating new folders- md
131. Opening Windows Installer – msiexec
132. Managing the network resources – net
133. Knowing the permissions for a user – perms
134. Testing a network connecting – ping
135. Printing a text file – print
136. Shutdown computer – psshutdown
137. Checking free disk space – freedisk
138. Know the file and volume utilities – fsutil
139. File transfer protocl – ftp
140. Showing the space used in folders – diskuse
141. Deleting a folder and all subfolders – deltree
142. Importing or Exporting Active directory data – csvde
143. Displaying the resultant set of Policy information – gpresult
144. Updating the Group policy settings – gpupdate
145. Replacing the files that are currently in use by the os – inuse
146. Comparing two files – fc
147. Finding a text string in a file – find
148. Finding for a strings in file – findstr
149. Displaying the memory usage – mem
Must Read: Best Firewall for Windows PC
Final Words
So these are some of the best CMD tricks you can try. Undoubtedly, if you use these cmd commands effectively, you will be able to level up your productivity. As well as you will be able to handle your PC easily. Anyway, if you have any questions, please comment below.
Here are some Best windows command prompt tricks for Windows 10. which allow doing the things which you can’t do on GUI windows. Like Create A Con folder, Hide and unhide folders using windows command prompt. The trick is to shut down the computer with a command prompt. Also, you can set Shutdown Computer At a specified Time With CMD prompt. You can Create Wi-Fi Hotspot using Command Prompt, and also Check the IP address of any Website and get the system details. And much more you can do with the command prompt. Here we have some hidden Command prompt Tricks you must Try.
Contents
- 1 Top windows command prompt Tricks
-
-
- 1.0.0.1 Create CON Folder
- 1.0.0.2 To Deleting con Folder
- 1.0.0.3 To Unhide the Folder
- 1.0.1 Check IP address of any Website
- 1.0.2 Check Installed Driver list
- 1.0.3 Create Wi-Fi Hotspot using Command Prompt
- 1.0.4 Assoc CMD Command
- 1.0.5 This command provides you with a list of programs and their associated files.
-
-
Creating Con Or Non-Delectable Folder With CMD
In Windows, you cannot create a folder with the name con or can not rename a folder to con. This is because it is a variable name used by Windows programming.
Other variable name includes lp1, lpt2, lpt3 up to lpt9, aux. So Windows cannot allow you to make a folder with this name.
But with the help of the dos command, we can create a folder with such a name.
Create CON Folder
Press the Windows button and run CMD as administrator.
Now Type Command
C:>md .D:con
Here D is your drive location and con is your folder name
To Deleting con Folder
You can not delete such folders manually by using Windows. To delete this folder type the following command in the command prompt.
C:>rd .D:con
Hide/ Unhide A Folder with CMD Command
We can play some interesting tricks with the command prompt. Hiding a folder is one of them. By hiding a folder you can also save your data from other users.
You can do this by typing the following command: attrib +s +h D:Srikant
Where D is my Drive Letter and Srikant is the name of the directory we want to hide.
To Unhide the Folder
If we can also unhide the hidden folder using the command prompt. To unhide the folder type the following command: attrib -s -h D:Srikant
Open Command Prompt from current Folder
When you open the command prompt, it opens up in either the User or System folder depending upon whether you run it as administrator or not.
Now the thing is, if you want to execute a file in any particular folder, you would have to use the change directory(cd) command to navigate to the folder which can be a problem if the directory is nested way too deep. To ease things, you can open the folder in your Windows Explorer, hold the Shift key when you right-click in the folder, and select the Run command window here to directly open the CMD prompt with the path to that folder directly.
Shut Down Computer with Commands
You can also shut down your computer by using the command prompt. Type the following command in the command prompt.
For Shut Down shutdown -s (S parameter tells the computer to shut down)
For Restarting shutdown -r (R parameter tells the computer to Restart windows)
And command for Force Logoff shutdown -l (L parameter tells the computer to log off windows)
Shutdown Computer In specified Time With CMD
You can also shut down your computer at a specified time using the command prompt. If you want to shut down your computer after 10 minutes type the following
command.
shutdown -s -t 600
Save a Command to a File
If you want to save the results of a command to a .txt for future reference. Then it is quite easy you need to execute this after command > (destination/filename with .txt extension)”
for example, ipconfig/all > D/srikant.txt
This will create a text file on D drive named srikant.txt
Check IP address of any Website
You can see the IP address of any website just by entering “nslookup” command along with the name of the website.>
For example, you can type “nslookupwindows101tricks.com” to find its IP address.
Run Command Prompt as Admin
Many commands require you to run command prompt as an administrator. When you search for CMD in Start Menu, other than selecting Run as administrator from the right-click menu, you can simply press Ctrl+Shift+Enter to open it with admin privileges. This trick will work for all the programs installed on your system.
Get Help for Any Valid Command
This is especially helpful for beginners, you know about a command, but you are not sure how it works. Not a problem, you can easily get info on almost every command you provide in the Command Prompt. Information includes complete details of what a command is.
To get the help, just type “/?” at the end of the command and execute it. If the command is valid, the command prompt will give you all the information related to it.
Use Function Keys on command prompt for different results
1. F1: Pastes per character last used command
2. F2: Pastes last used command only to a specified command character
3. F3: Pastes Last used command
4. F4: Delete command only to a specified command character
5. F5: Pastes last used command without cycling
6. F6: Pastes ^Z
7. F7: Provides a list of already used commands (selectable)
8. F:8 Pastes cycleable used commands
9. F9: Will let you paste commands from the list of recently used commands
Check Installed Driver list
Type driverquery command to see installed Driver’s list
Run Commands Simultaneously
You can put && between two commands and execute them one after another. The command on the left will execute first followed by the command on the right of the double ampersand.
for example, you can type “ipconfig && dir” to execute both commands one after another
Create Wi-Fi Hotspot using Command Prompt
In the Command Prompt, enter the following command to enable Wi-Fi Hotspot.
“netsh wlan set hostednetwork mode=allow ssid=Hotspotname key=password”
Once enabled, you can start the Wi-Fi hotspot by entering the command “netsh wlan start hostednetwork” or stop it by entering the command “netsh wlan stop hostednetwork“. You will also need to share your internet connection to this hotspot for everyone to use. Go to the “Network and Sharing” option from the “Control Panel” and then click on “Change adaptor settings” in the left panel.
Here, right-click on the internet connection you are using and click on “Properties“. In the properties, go to sharing tab and check the option “Allow other network users to connect through this computer’s internet connection” to share your internet connection.
Assoc CMD Command
There are many programs installed on our computer. Each program has its own file extension. It is difficult to remember each file extension. If you want to know which file is associated with which program then we can do this by typing the following command: Assoc
This command provides you with a list of programs and their associated files.
See Command History
You can see the last commands used in a session using the navigation buttons, but if you would like to see a list of all the commands, you can get it by pressing the F7 button.
Alternatively, you can use the command doskey /history to list these commands in the command prompt itself.
These are some best windows command prompt commands which make windows easier. windows command prompt tutorial will definitely help you understand Command Prompt in a better way.
Windows Command Prompt is not only useful but also a tool that you should give more respect to by knowing these cool cmd commands. Here is a list of the most used commands in the CMD window or prompt commands that you can type to perform certain tasks in windows.
Command Prompt is one of the most powerful tools in Windows, also known as CMD. CMD is the command-line interpreter on Windows operating systems. Command Prompt interacts with the user through a command-line interface.
Things were not always like this, but with the advent of GUI-based operating systems, people started feeling that computing through command-based tools was boring. This ultimately leads the command prompt into obscurity.
However, the command prompt is not useless. It can be pretty helpful. This article provides some excellent tricks, secrets, and hacks that will make you realize that the Windows Command Prompt is useful and a tool you should give more respect to by knowing these cool cmd commands. Here you will find lots of basic cmd commands, cmd commands for the network, cmd commands tricks, etc.
Also Read: How To Remove Computer Viruses Using CMD
To Open CMD, you need to search for CMD in the Search box, or you can press Windows Key + R, which will eventually open the Run window, where you need to type CMD and hit enter.
1. Accessibility Controls – zaccess.cpl 2. Accessibility Wizard – accwiz 3. Add Hardware Wizard – hdwwiz.cpl 4. Add/Remove Programs – appwiz.cpl 5. Administrative Tools – control admintools 6. Automatic Updates – wuaucpl.cpl 7. Bluetooth Transfer Wizard – fsquirt 8. Calculator – calc 9. Certificate Manager – certmgr.msc 10. Character Map – charmap 11. Check Disk Utility – chkdsk 12. Clipboard Viewer – clipbrd 13. Command Prompt – cmd 14. Component Services – dcomcnfg 15. Computer Management – compmgmt.msc 16. Control Panel – control 17. Date and Time Properties – timedate.cpl 18. DDE Shares – ddeshare 19. Device Manager – devmgmt.msc 20. Direct X Troubleshooter – dxdiag 21. Disk Cleanup Utility – cleanmgr 22. Disk Defragment – dfrg.msc 23. Disk Management – diskmgmt.msc 24. Disk Partition Manager – diskpart 25. Display Properties – control desktop 26. Display Properties – desk.cpl 27. Dr. Watson System Troubleshooting Utility – drwtsn32 28. Driver Verifier Utility – verifier 29. Event Viewer – eventvwr.msc 30. Files and Settings Transfer Tool – migwiz 31. File Signature Verification Tool – sigverif 32. Findfast – findfast.cpl 33. Firefox – firefox 34. Folders Properties – control folders 35. Fonts – control fonts 36. Fonts Folder – fonts 37. Free Cell Card Game – freecell 38. Game Controllers – joy.cpl 39. Group Policy Editor (for xp professional) – gpedit.msc 40. Hearts Card Game – mshearts 41. Help and Support – helpctr 42. HyperTerminal – hypertrm 43. Iexpress Wizard – iexpress 44. Indexing Service – ciadv.msc 45. Internet Connection Wizard – icwconn1 46. Internet Explorer – iexplore 47. Internet Properties – inetcpl.cpl 48. Keyboard Properties – control keyboard 49. Local Security Settings – secpol.msc 50. Local Users and Groups – lusrmgr.msc 51. Logs You Out Of Windows – logoff 52. Malicious Software Removal Tool – mrt 53. Microsoft Chat – winchat 54. Microsoft Movie Maker – moviemk 55. Microsoft Paint – mspaint 56. Microsoft Syncronization Tool – mobsync 57. Minesweeper Game – winmine 58. Mouse Properties – control mouse 59. Mouse Properties – main.cpl 60. Netmeeting – conf 61. Network Connections – control netconnections 62. Network Connections – ncpa.cpl 63. Network Setup Wizard – netsetup.cpl 64. Notepad – notepad 65. Object Packager – packager 66. ODBC Data Source Administrator – odbccp32.cpl 67. On Screen Keyboard – osk 68. Outlook Express – msimn 69. Paint – pbrush 70. Password Properties – password.cpl 71. Performance Monitor – perfmon.msc 72. Performance Monitor – perfmon 73. Phone and Modem Options – telephon.cpl 74. Phone Dialer – dialer 75. Pinball Game – pinball 76. Power Configuration – powercfg.cpl 77. Printers and Faxes – control printers 78. Printers Folder – printers 79. Regional Settings – intl.cpl 80. Registry Editor – regedit 81. Registry Editor – regedit32 82. Remote Access Phonebook – rasphone 83. Remote Desktop – mstsc 84. Removable Storage – ntmsmgr.msc 85. Removable Storage Operator Requests – ntmsoprq.msc 86. Resultant Set of Policy (for xp professional) – rsop.msc 87. Scanners and Cameras – sticpl.cpl 88. Scheduled Tasks – control schedtasks 89. Security Center – wscui.cpl 90. Services – services.msc 91. Shared Folders – fsmgmt.msc 92. Shuts Down Windows – shutdown 93. Sounds and Audio – mmsys.cpl 94. Spider Solitare Card Game – spider 95. SQL Client Configuration – cliconfg 96. System Configuration Editor – sysedit 97. System Configuration Utility – msconfig 98. System Information – msinfo32 99. System Properties – sysdm.cpl 100. Task Manager – taskmgr 101. TCP Tester – tcptest 102. Telnet Client – telnet 103. User Account Management – nusrmgr.cpl 104. Utility Manager – utilman 105. Windows Address Book – wab 106. Windows Address Book Import Utility – wabmig 107. Windows Explorer – explorer. 108. Managing the Boot Configuration Data - bcdedit 109. Editing Boot Settings - bootcfg 110. Encrypting or Decrypting Files/folders - cipher 111. Clearing the screen - cls 112. Managing stored usernames/passwords - cmdkey 113. Changing CMD Color - color 114. Compressing one or more files - compress 115. Converting FAT drives to NTFS - convert 116. Delete files - del 117. Deleting User Profiles - delprof 118. Displaying the list of files and folders - dir 119. Displaying Message On Screen - echo 120. Deleting one or more files - erase 121. Opening the windows Explorer - explorer 122. Formatting a disk - format 123. Knowing file extension - ftype 124. Displaying the Mac Address - getmac 125. Online help - help 126. Displaying the host name - hostname 127. Editing disc label - label 128. Log a user off - logoff 129. Get a log time in a file - logtime 130. Creating .cab files - makecab 131. Creating new folders- md 132. Opening Windows Installer - msiexec 133. Managing the network resources - net 134. Knowing the permissions for a user - perms 135. Testing a network connecting - ping 136. Printing a text file - print 137. Shutdown computer - psshutdown 138. Checking free disk space - freedisk 139. Know the file and volume utilities - fsutil 140. File transfer protocl - ftp 141. Showing the space used in folders - diskuse 142. Deleting a folder and all subfolders - deltree 143. Importing or Exporting Active directory data - csvde 144. Displaying the resultant set of Policy information - gpresult 145. Updating the Group policy settings - gpupdate 146. Replacing the files that are currently in use by the os - inuse 147. Comparing two files - fc 148. Finding a text string in a file - find 149. Finding for a strings in file - findstr 150. Displaying the memory usage - mem 151. Remote desktop protocol - mstsc 152. Managing the domain - netdom 153. Manage the Background intelligent Transfer Service - bitsadmin 154. Enable Or disable Break Capability in CMD - break 155. Change the permissions of files - cacls 156. Call another batch program using one - call 157. Manage the certification authority files and services - certutil 158. Change the folder or go to a specific one - cd 159. Check the NTFS file system - chkntfs 160. Copy one or more files to other location - copy 161. show the mapping inbetween logical and physical processor - coreinfo 162. Import/Export data of an active directory - csvde 163. Display the date or change it - date 164. Display disk usage - diruse 165. View used space in folder - diskuse 166. Show the list of device drivers - driverquery 167. View objects in active directory - dsget 168. Modify objects in an active directory - dsmod 169. Display the print queue status - lpq 170. Display open files - open files 171. Monitor performance in CMD - perfmon 172. Shows remote Access service status - rasdial 173. Managing RAS connections - rasphone 174. Send A Message - msg 175. Create a symbolic Link - mklink 176. Send email from command line - mapisend 178. Manage the performance monitor logs - logman 179. Uncompress the CAB files - expand 180. Loop command - all options files, directory, and list - for 181. Move an active Directory Object - dsmove 182. In order to view items in the Active directory - dsget 183. View the Active directory ACLs - DSACLs 184. Client-side caching for offline files - CSCcmd 185. Monitor and log system activity (Windows event log) - sysmon 186. Edit file and folder permissions - subinacl 187. Save and change the current directory - pushd 188. Display user session - quser 189. Read, export, delete and set keys and values - reg registry 190. Register or unregister a DLL - regsvr32 191. Batch process multiple files - forfiles 192. Search for Items in Active directory - dsquery 193. Cleanup temp file, recycle bin - cleanmgr 194. Compare the contents of two sets of files - comp 195. show the map between logical and physical processor - coreinfo 196. Manage RAS connections - rasdial 197. kill process by process and name id - pskill 198. Disconnect the remote desktop session - tsdiscon 199. Edit the service principal name - setspn 200. Share a folder or printer rmtshare 201. Change the registry permissions - regini 202. Execute a program from different user account - runas
So, these are the best cmd commands. I hope these cmd commands will help you a lot. If you know some other cmd commands, let us know by commenting on the comment box below. Feel free to share this post with your friends!