Ten Hidden Windows Command Prompt Tricks - Cdn.ttgtmedia

1y ago
4 Views
1 Downloads
699.65 KB
6 Pages
Last View : 2m ago
Last Download : 3m ago
Upload by : Jamie Paz
Transcription

Ten hidden Windows command prompt tricks

Ten hidden Windows command prompt tricks Desktop administrators use the Windows command prompt regularly, but they may not realize that it includes features that can save them a lot of time. Contents Ten hidden Windows command prompt tricks Inside this exclusive guide, our editors complied ten of the best hidden command prompt tricks that can reduce the time it takes to perform common tasks. Learn how you can start taking advantage of these tricks today. Ten hidden Windows command prompt tricks By: Nirmal Sharma 1. Run multiple Windows commands from the command prompt You can run multiple Windows commands in one go from the command prompt. For example, you can start or stop a service from a command prompt by typing "Net Start/Stop." What if you need to restart a service from the command prompt? In that case, you can use a double ampersand -- && - which allows you to run multiple "Net" commands in one line to first stop and then restart the service. 2. Add a double ampersand to ends of lines to execute another command You can add another double ampersand at the end of the line to execute any other command. For example, the first command here is executed to list the files in C:\Temp directory, and then next two commands are executed to stop and restart the Windows Time service. Similarly, you can mix any Windows commands, but make sure to separate them with a "&&." This function also works for Windows XP. Page 1 of 5

Ten hidden Windows command prompt tricks 3. Using Windows Clipboard from a command prompt Contents As you know, CTRL C allows you to copy selected contents to Windows Clipboard, and the CTRL V key combination is used to paste the contents Ten hidden Windows command prompt tricks from Windows Clipboard. In the command prompt, the CTRL C key combination does not work. However, you can use the "clip" function, provided by the Windows 16-bit subsystem, to capture output of a command and store it in the clipboard. Note that this will work for any command. Once stored in the clipboard, open Windows Notepad or an editor of your choice and use the CTRL V key combination to read and paste the contents from the clipboard. Be aware that this command isn't available in Windows XP, so you must copy it from a computer running Windows 7 or later to a Windows/System 32 directory. 4. Clearing Windows Clipboard contents from the command prompt The contents stored in Windows Clipboard can eat up memory. You must clear the Windows Clipboard to make sure memory used by the contents is available back to the operating system. To clear contents, use the command "Echo Off." This is a special command, and when executed with the "Clip" command, it clears the contents from Windows Clipboard. 5. Open command prompt from a folder using ‘Open command window here’ "Open command window here" is available on the right-click context menu of a folder in Windows Explorer. This command can save you a lot of time Page 2 of 5

Ten hidden Windows command prompt tricks getting to folders via Command Prompt. You must hold the Shift key while you right-click the folder to see this action. Contents This action is available only on folders and not files, and open command prompt is not available on Windows XP. You must use Microsoft PowerToy Ten hidden Windows command prompt tricks for Windows XP to add this function to the right-click context menu of the folders. 6. Opening command prompt from a folder using CMD.exe You can also type "CMD" in the address bar of Windows Explorer to get to the Windows location of your choice. All you need to do is go to the folder location of your choice in Windows Explorer, put your cursor in the address bar, and then type "CMD.exe" or just "CMD." You can switch to the windows location of your choice and in the next screenshot, type "CMD" to open the command prompt. 7. Open the command prompt with just CMD After switching to the Windows location of your choice, type "CMD" to open the command prompt. This function also works in Windows XP, as well as in later editions of Windows. 8. Using Windows Redirector to store command outputs to a text file Keyboard Symbol " " -- also known as Redirector -- allows you to store the output of a command in a text file. The use of " " (Redirector) is commonly seen in batch scripting, but you can use it to capture the output of a command in a text file quickly as listed below: DIR C:\TempCMD MyOutput.txt By default, Redirector does not capture errors returned by a command. If you need to capture errors also in the text file, then you must use "2 &1" at the end of the command line. Page 3 of 5

Ten hidden Windows command prompt tricks The first command is executed to stop a service named "W32TimeT." Since there is no service by the name of "W32TimeT," the command returns an Contents error. The error is not captured in the text file, even if you use Redirector. Ten hidden Windows command prompt tricks The second command uses "2 &1" to capture the output of the command with errors in the text file successfully. To quickly open MyOutPut.txt, run the "Start MyOutput.txt" command. This tip also works in Windows XP. 9. Show your command history Do you wish to check all the commands you executed in the current command window session? If yes, then use the popular "Doskey" command with "history" switch. This will also work in Windows XP. 10. Drag and drop a folder to open command prompt If you don't want to open a command prompt from the right-click context menu of the folder as explained previously, then just drag the folder and drop it to the command prompt. The only issue with this approach is that you must type "CD" before dragging the folder to the command prompt. This last command also works in Windows XP. Page 4 of 5

Ten hidden Windows command prompt tricks Contents Ten hidden Windows command prompt tricks Free resources for technology professionals TechTarget publishes targeted technology media that address your need for information and resources for researching products, developing strategy and making cost-effective purchase decisions. Our network of technology-specific Web sites gives you access to industry experts, independent content and analysis and the Web’s largest library of vendor-provided white papers, webcasts, podcasts, videos, virtual trade shows, research reports and more —drawing on the rich R&D resources of technology providers to address market trends, challenges and solutions. Our live events and virtual seminars give you access to vendor neutral, expert commentary and advice on the issues and challenges you face daily. Our social community IT Knowledge Exchange allows you to share real world information in real time with peers and experts. What makes TechTarget unique? TechTarget is squarely focused on the enterprise IT space. Our team of editors and network of industry experts provide the richest, most relevant content to IT professionals and management. We leverage the immediacy of the Web, the networking and face-to-face opportunities of events and virtual events, and the ability to interact with peers—all to create compelling and actionable information for enterprise IT professionals across all industries and markets. Related TechTarget Websites Page 5 of 5

Inside this exclusive guide, our editors complied ten of the best hidden command prompt tricks that can reduce the time it takes to perform common tasks. Learn how you can start taking advantage of these tricks today. Ten hidden Windows command prompt tricks By: Nirmal Sharma 1. Run multiple Windows commands from the command prompt

Related Documents:

Command Library - String Operation Command Command Library - XML Command Command Library - Terminal Emulator Command (Per Customer Interest) Command Library - PDF Integration Command Command Library - FTP Command (Per Customer Interest) Command Library - PGP Command Command Library - Object Cloning

The Windows The Windows Universe Universe Windows 3.1 Windows for Workgroups Windows 95 Windows 98 Windows 2000 1990 Today Business Consumer Windows Me Windows NT 3.51 Windows NT 4 Windows XP Pro/Home. 8 Windows XP Flavors Windows XP Professional Windows XP Home Windows 2003 Server

Type the desired command or the command‟s alias at the command prompt. Command : LINE Command: L 2. Press ENTER on the keyboard. 3. Type an option at the command prompt. TIP: Many AutoCAD commands require you to press ENTER to complete the command. You know you are no longer in an AutoCAD command when you see a blank command line.

AutoCAD 2000 HDI 1.x.x Windows 95, 98, Me Windows NT4 Windows 2000 AutoCAD 2000i HDI 2.x.x Windows 95, 98, Me Windows NT4 Windows 2000 AutoCAD 2002 HDI 3.x.x Windows 98, Me Windows NT4 Windows 2000 Windows XP (with Autodesk update) AutoCAD 2004 HDI 4.x.x Windows NT4 Windows 2000 Windows XP AutoCAD 2005 HDI 5.x.x Windows 2000 Windows XP

C - Command Line Interface Type C to display the command line prompt. The prompt will differ depending on the management account you used to log onto the switch. If you logged in as manager, the prompt is "Manager:: ". If you logged in as operator, the prompt is "Operator:: ". You can now manage the switch with the command line commands.

Hidden Reward 6: Being Trustworthy 127 Hidden Reward 7: Being of Value 133 Hidden Reward 8: Learning to Self-Soothe and Regulate Our Emotions 137 Hidden Reward 9: Better Self-Esteem and a More Positive Self-Concept 145 Hidden Reward 10: Integrity 155 Hidden Reward 11: Intimacy: “I to Thou” Connections 1

Other Shortcut Keys 28 Command Line Reference 30 Information for DaRT Notes Users 32 . Open command 39 Save command 39 Save As command 39 Close command 39 Recent Files command 39 Clear MRU List command 40 Remove Obsolete command 40 Auto Save command 40 Properties comman

matched to the Cambridge IGCSE and O Level Accounting syllabuses, this coursebook increases understanding of accounting best practice. Clear step-by-step explanations and instructions help students learn how to record, report, present and interpret nancial information while gaining an appreciation of the ways accounting is used in modern business contexts. The coursebook is ideal for those .