Here some Best windows command prompt tricks for Windows 10. which allow to do the things which you can’t do on GUI windows. Like Create A Con folder, Hide and unhide folders using windows command prompt. Trick to shutdown computer with command prompt. Also you can set Shutdown Computer In a specified Time With CMD prompt. You can Create Wi-Fi Hotspot using Command Prompt, and also Check 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.
Top windows command prompt Tricks
Creating Con Or Non-Delectable 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.
Create CON Folder
Press Windows button and run CMD as administrator.
Now Type Command
Here D is your drive location and con is your folder name
To 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.
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
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.
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)
And command for For 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 in specified time using command prompt. If you want to shut down your computer after 10 minutes type the following
shutdown -s -t 600
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/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 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 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.
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 command from the list of recently used commands
Check Installed Driver list
Type driverquery command to see installed Drivers 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 “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 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.
See Command History
You can see last used commands 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 more easier. windows command prompt tutorial will definitely help you understand Command Prompt in a better way.