Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Top 10 Hidden command prompt Tricks for Windows 10

1. Creating Con Or Non Deletable Folder With CMD

In Windows you can not create a folder with 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 can not allow you to make a folder with this name.
 But with the help of dos command we can create a folder with such name.

1. Press 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

Deleting con Folder
You can not delete such folder manually by using Windows. To delete this folder type the following command in the command prompt.
C:\>rd \\.\D:\con

2. Hide/ Unhide A Folder With CMD Command:

We can play some interesting tricks with 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 directory we want to hide.

To Unhide The Folder
If we can also unhide the hidden folder using command prompt. To unhide the folder type the following command :  attrib -s -h D:Srikant

3. Open Command Prompt from current Folder: 

When you open the command prompt, it opens up in either User or System folder depending upon whether you ran 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 Shift key when you right-click in the folder and select Run command window here  to directly open the CMD prompt with the path to that folder directly.

4 . Shut Down Computer With Commands

You can also shut down your computer by using command prompt. Type the following command in 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)

For Logoff

shutdown -l ( L parameter tells the computer to log off windows)

5. Shutdown Computer In specified Time With CMD

You can also shut down your computer in specified time using command prompt. If you want to shut down your computer after 10 minutes type the following

shutdown -s -t 600

6. Save a Command to a File

If you want to save results of a command to a .txt for future reference, then it is quite easy
you need to execute this after command > (destination/file name with .txt extension)”
for example ipconfig/all > D/srikant.txt

This will create a text file on D drive named srikant.txt

7. Check IP address of any Website

You can see IP address of any website just by entering “nslookup” command along with the name of the website.
For example, you can type “” to find its IP address.

8. Run Command Prompt as Admin : 

Many commands require you to run command prompt as 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.

9. 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.
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.

10. 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 command from the list of recently used commands

11. Type driverquery command to see installed Drivers list on your system.

12. 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

13. 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 “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.

14. Assoc CMD Command

There are many programs installed in our computer. Each program have 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 provide you a list of programs and their associated files.

CMD tricks will definitely help you understand Command Prompt in a better way.

This post first appeared on Windows101Tricks - A Simply Windows 10 Tips And Tweaks, please read the originial post: here

Share the post

Top 10 Hidden command prompt Tricks for Windows 10


Subscribe to Windows101tricks - A Simply Windows 10 Tips And Tweaks

Get updates delivered right to your inbox!

Thank you for your subscription