List of Windows 10 Command Prompt Commands (2019) : Command Prompt Tricks

List of Windows 10 Command Prompt Commands (2019) : Command Prompt Tricks


List of Windows 10 Command Prompt Commands (2019) : Command Prompt Tricks Windows allows to do many tasks. Although the UI is human-friendly, but not really computer-friendly: you can not start the "Windows (Start Menu)> Shutdown Button> Resume" task automatically. Windows Command Prompt Commands and, actually, commands are, in general, a mixture between a programming language and a function that you can do in the user interface.


1-Basic CMD Commands

What you can do in the Command Line, this is depends on understanding your Commands. In Windows, it's cmd.exe or PowerShell. PowerShell is good, but requires .NET Framework and you can not use it in Windows Recovery or Windows Safe Mode.




On the other hand, cmd.exe represents the shell that you are going to use in such cases listed above. Additionally, .bat files are used by cmd.exe and are still the most common way of distributing shell scripts in Windows: so learning cmd.exe means that you can read the .bat files yourself.

Lets Start By displaying text with Echo:


1:- echo Testing currently CMD
It will display the text after the Echo. Congratulations on your first order! Displaying things to show a list or indicating progress is helpful in script and loop.

To display two lines:
2:- echo Testing currently CMD & echo Next line
The & Operator allows execution of two commands in one line. This is mainly useful for commands you type directly. Especially important is that if any other work should be launched shortly.


2-CMD Commands Tricks


(A) Use Ctrl-C to Abort a Command

If you did not actually execute a command, you can simply backspace and erase what you have typed, but if you have already executed it, then you have to stop it by pressing Ctrl-C.

(B) Command History



doskey /history
Using this command will be useful if you are trying to see some commands, but can not remember.

(C) Run Multiple Commands.


ipconfig && mspaint

If you are feeling the need to run two commands after one, then you can do this easily. Add it to your collection of CMD hacks. You just need to enter "&&" between each command and save some time. For example, here's how ipconfig and paint are run.

(D) Create Wi-Fi Hotspot Right from the Command Prompt.


To execute the required command for this, before opening a command prompt, you need to open the control panel and find the adapter settings in the Network and Sharp options. There, click the connection you are using and click on the property. Now find the Sharing tab and check the "Allow other network users to connect via the computer's internet connection" option.

Now open the command prompt with administrative privileges and enter the following command:


netsh wlan set hostednetwork mode=allow ssid=Yourhotspotname key=yourpassword

After this is enabled, enter the following command to start the Wi-Fi hotspot.


netsh wlan start hostednetwork

To stop it, simply enter this command:


netsh wlan stop hostednetwork.

(E) Change the Title of the Command Prompt Window.


When you launch the command prompt, you may have noticed that the title bar reads "Command Prompt" or perhaps "Administrator Command Prompt", if you launch it with administrator privileges. Although this is fine, but if you have too many CMD windows open, and each of them is working on a different task, then this "command prompt" title is not always useful at all. Fortunately, you can change it.


Open Command Prompt, and type “title”, followed by the text that you want the Title bar to read. 



Note: The title changes back to “Command Prompt” once you quit cmd and relaunch it.




(F) List all Installed Programs.


Another quiet move at the command prompt involves listing all the programs installed on your PC. This is especially useful if you need to uninstall the program by using a command prompt. To list all installed programs, just follow the steps given below:


wmic product get name

  • Launch Command Prompt, and type “wmic product get name“ Hit Enter.
  • 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.

3-Command Prompt Hacks

(G) Make Folders That you Cannot Delete.

Enter the name of the Drive you want to create folder Cannot Delete Folder.


md con\ or md lpt1\




Note: That the folder cannot create in C Drive because C drive is your system drive. 

Deleting the Folder



Although, it is not possible to manually delete the folder, you can delete the folder by typing "rd con\" or "rd lpt1\" instead of "md con\" or "md lpt1\".

(H) Shutdown your Computer using CMD.

Shutdown Local Machine (Your Computer)


shutdown -s

Restart Local Computer


shutdown -r

Log Off the Current User


shutdown -l

Shutdown a Remote Computer


shutdown -s -m \\name of the computer

4-CMD Commands IP

(I) ipconfig Commands


  • Display Full ipconfig Configuration: ipconfig /all
  • Release All IP Addresses: ipconfig /release
  • Renew All IP Addresses: ipconfig /renew
  • Display DNS Resolver Cache: ipconfig /displaydns
  • Clear DNS Resolver Cache: ipconfig /flushdns
  • Fresh Register DNS Connections: ipconfig /registerdns

ipconfig /all

To display your current IP information for all adapters. With Ipconfig you can also find out your DNS server and mac address.

ipconfig /release

Use ipconfig release to release your current IP information and obtain a new IP Address from the DHCP server.

ipconfig /renew

Use ipconfig to renew your IP address if you have set it to automatically get the IP address.

ipconfig /displaydns

This shows your current DNS resolver cache log. DNS caching basically tells your computer to store DNS.

ipconfig /flushdns

Flush DNS command flashes or clears your current DNS resolver cache log. If a website was to switch the host or get a new IP address, there is still an old DNS cache, so it will not direct you to the site that works now.

ipconfig /registerdns

Register DNS command updates DNS settings on Windows computers. It does not use only the local DNS cache, it starts communicating with the DNS server and DHCP server so that it can re-register the network address.

(J) Ping Commands
  • Ping IP Address: ping 127.0.0.1
  • Ping Website: ping windowproblemsolve.com
  • Continuous Ping: ping -t 127.0.0.1
  • Ping X Amount of Times: ping -n 10 127.0.0.1
  • Ping A Sized Packet: ping -l 1500 127.0.0.1
  • Ping Timeout Limit: ping -w 5000 127.0.0.1
  • Resolve Host Name: ping -a 127.0.0.1


ping 127.0.0.1

Ping an IP address You will type the following dos command at the Windows Command prompt. Ping after an IP address is how you do an internet ping.
ping with websites

To ping the website you will type ping after the website domain name. If you know the IP address of websites, then you can also ping it.

ping -t 127.0.0.1

Continuous ping- will continue to ping it forever - To stop this press Ctrl + C . It can be very good to troubleshoot the intermittent connection.

ping -n 10 127.0.0.1

Number of Pings - The N switch is just to determine the number of pings. Ping cmd by default sends 4 packets in 32 bytes.

ping -l 1500 127.0.0.1

Packet Size - The packet sent by default is of 32 bytes. You can set your size to a maximum of 65500 bytes. It can help.

ping -w 5000 127.0.0.1

Time Out - It's in Milliseconds. By default the timeout is 4,000 milliseconds, which is 4 minutes long. Just watching if you were still paying attention. It's really only 4 seconds.

ping -a 127.0.0.1

Hostname resolves the address - it's a fantastic if you're helping someone else and need to figure out what router model they are using. You are the host of an IP address with this command. Try pinging your router or your local computer with Ping-A 127.0.0.1.
List of Windows 10 Command Prompt Commands (2019) : Command Prompt Tricks List of Windows 10 Command Prompt Commands (2019) : Command Prompt Tricks Reviewed by The Windows Help on July 30, 2019 Rating: 5

No comments:

Powered by Blogger.