The “ cd/” command takes back to the root directory.īy now you might have typed or pasted a lot of commands When typing the “ cd” it moves the directory back one directory. If I want to change the attribute of the lol.txt to read only then the command will be L Work on the attributes of the Symbolic Link versus S Processes matching files in the current folder Specifies a file or files for attrib to process. The syntax to change the file attribute is:ĪTTRIB To do it you need administrator permission. “ date /T” will display only the current date. The /T switch which tells the command to just output theĬurrent date, without prompting for a new date. If Command Extensions are enabled the DATE command supports Type DATE without parameters to display the current date setting andĪ prompt for a new one.
This command adds the lol.txt file inside the lol folder.Īlso Read: How to Blur an Image in MS Paint in less than 30 seconds | Face & Text 10.) Change the date Specifies the directory where files are to be replaced. filename Specifies the source file or files. To replace any file with other file the syntax is: Type “ help” in the cmd and a list of all the commands will beįilename1 is the file to be renamed and filename 2 is the name to be given to the filename1. Suppose you want to share the computer problem to any technician or save the output of any command which is too big for example the output of “dir/s” seems like an endless display.ĭirectly to the file of any computer by typing the code-Īlso Read: (6 Methods) That Can Protect Your Computer From Webcam Hacking 7.) Get a list of all the commands in CMD
To get an in detail use of any command prompt command just type the command name followed by “ /?” and it will list down all the different commands associated with that keyword.įor example when we type “ ipconfig” it will only list down the IP address of the pc but it can be used to renew all adapters, show detailed informationĦ.) Save the output of any command to a file Now your hotspot will be enabled and ready for use.Ĭreate Wi-Fi hotspot using your pc or laptop Now open CMD with Administrator rights and paste the following code:Ī.) netsh wlan set hostednetwork mode=allow ssid=Youthotspotname key=yourpassword Sharing –> Click on “ Allow other network users to connect through this To turn a pc into hotspot we need to first open Control Panel–>Ĭhange adapter settings–> Right click and go to Properties –> Hotspot but if any need arises we can do it simply by typing few codes in cmd.
There doesn’t seem any reason to turn the laptop or pc into a It is one of my favprite command prompt tricks. Suppose you want to execute a command and if it is keeping on loadingĪnd is not stopping you can type Ctrl+c and it will stop in between.Īlso Read: Keylogger Protection: How To Detect, Prevent & Remove Them 4.) Create Wi-Fi hotspot using your pc or laptop
Type “ driverquery” and you will see a big list of all the drivers
Our pc contains a hell lot of driver list and if you want toĬheck whether you have any particular driver in the pc then just People from tech background knows about logical operator “AND”Īnd it’s symbol “&”, same can be applied in cmd to execute multiple commandsįor example, we can open a calculator + notepad at once by typing.