![]() ![]() assoc – Lists Programs and the Extensions They are Associated With You can type clip /? and hit ENTER to see how to use it. ![]() clip – Copies an Item to the Clipboardįor example, dir | clip copies all the content of the present working directory to the clipboard. N.B: If you don’t append $G to the command, you won’t get the greater than symbol in front of the text. You can use the prompt command to change that default text with the syntax prompt prompt_name $G: Prompt – Changes the Default Text Shown before Entering Commandsīy default, the command prompt shows the C drive path to your user account. Set – Shows your PC’s Environment Variables If you want to see more detailed information about your system you won’t see in the GUI, this is the command for you. That’s what this command does – it shows you even the drivers you won’t find in the device manager.Ĭhdir or cd – Changes the Current Working Directory to the Specified Directory It is important to have access to all drivers because they often cause problems. Windows Command Line Commands powershell start cmd -v runAs – Run the Command Prompt as an AdministratorĮntering this command opens another command prompt window as an administrator:ĭriverquery – Lists All Installed Drivers In addition, some of these commands require you to open the command prompt as an admin. This is because some commands can have a lasting negative or positive effect on your Windows PC until you reset it. N.B.: You have to be careful while using the commands I’ll show you. In this article, I’ll show you 40 commands you can use on the Windows command line that can boost your confidence as a Windows user. With it, you can interact with the OS directly and do a lot of things not available in the graphical user interface (GUI). I’ll sometimes make use of this technique so that I can employ my favorite text editor’s search commands on the resulting list of files my text editor’s “search” functionality tends to be rather more robust, and to have more available options, than either a CMD prompt, or Windows itself, can provide.The Windows command line is one of the most powerful utilities on a Windows PC. (And before anyone asks, yes, you CAN change the location and/or name of the destination file I only give “C:\List.TXT” here as an example.) ![]() Now all the results of your “dir” search command will be written to a file, “List.TXT”, in the root “C:\” directory. If you don’t like the dreariness of paging through a list of files one screenful at a time for half an hour (or longer!), omit the “/p” switch and append the following to your “dir” command, after a space (without the quotes): “> C:\List.TXT”, so that the whole thing reads: The results, as they say, may surprise you. The result will be a list of all pdf documents on your C: drive.Ĭhange “*.pdf” to whatever you’re looking for. pdf” is what we’re searching for – in this case, any document that ends in “.pdf”, meaning all pdf documents. “/p” means paginate – stop after each screen of results, so you have a chance to read it. “/s” means list everything in the current directory and all sub-directories. DIR /s/p *.pdfĭIR is the “DIRectory” command, which lists the contents of that directory (aka folder). This changes the current folder to the top of the C: drive, allowing us to search the entire thing. “CD” is the Change Directory command, and “\” indicates the top of the folder tree. In that Command Prompt, type the following (each followed by the Enter key): CD \īy default, the Command Prompt opens with C:\Windows\System32 as the “current” directory or folder. Windows search function has improved dramatically, but in the long run, I still occasionally find using the Command Prompt as, if not more, effective.įire up a Command Prompt (you may want to “Run as administrator” to be able to search everywhere). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |