TechRepublic's Microsoft Weekly newsletter
Subscription | Read Online Twitter Facebook Google+

Windows tip of the week

Cut down on repetitive typing in Command Prompt windows


By Ed Bott


Windows experts know that using the command line is often the fastest way to get things done. The more you use a Command Prompt window (Cmd.exe), in fact, the more likely you are to reuse commands or to copy complex command syntax (complete with switches) to avoid tedious retyping.


The easiest way to reuse a command is with the help of the command buffer, which stores all the commands you've entered in the current session. Press the Up and Down arrow keys to scroll through the buffer. When you find a previous command, edit it as needed and then press Enter.


If you've found a useful command in a support article and want to avoid retyping it, copy it to the Clipboard. When you switch to the Command Prompt window, you can, of course use the familiar Ctrl + V keyboard shortcut to paste it, but there's no need to take your hand off the mouse. Just right-click in the Command Prompt window to paste that command. Edit it as needed and then press Enter to execute it.

Latest on Microsoft

Microsoft's conference schedule for 2018: Mark your calendars for these key events

Microsoft conferences offer IT pros a preview of upcoming tech developments, with plenty of opportunities for education, training, and personal development. Here's are several events worth taking note of.

More TechRepublic stories

Windows 10: Chrome vs Firefox vs Edge in Microsoft's new battery life showdown

Microsoft is finally moving TechNet's tips and code snippets to Microsoft Docs

Office Q&A: Counting conditional unique values in Excel

Microsoft in 2017: The biggest hardware and software milestones

Posts from ZDNet

Microsoft in 2017: Windows 10, company layoffs are the big stories

Amazon's Jeff Bezos ends 2017 as the world's richest person, worth $99 billion, despite Donald Trump

Key Middle East trends: Experts pick out the big shifts in the region's tech

Microsoft Australia makes AU$43m profit after settling AU$39m ATO bill

Featured multimedia

5 reasons to trust Apple's Face ID

Face ID will completely replace Touch ID, and this has some users concerned. Here are answers to five common questions.

Photos: Classic Windows screensavers from Windows 1.0 to Windows 98

Today's recommended downloads

Free Trial - Design and create a load test in under 10 minutes

(Micro Focus)

Design and create a load test in under 10 minutes - Free Trial

(Micro Focus)

Take this survey

Survey: Is smart office tech making your work life easier?

Smart office products are optimizing workplaces for better collaboration and improved productivity, energy efficiency, and employee health, but does this tech really make life easier for employees? Take this short survey from Tech Pro Research (TechRepublic's sister site) to let us know what you think.

A special feature from ZDNet and TechRepublic

IT jobs in 2020: A leader's guide

The demand for IT talent is changing with the evolution toward AI, big data, cloud computing, and automation. Here's how CIOs, IT professionals and IT departments will need to adapt.

Connect with TechRepublic

Visit the Subscription Center to get other free newsletters, manage your account settings or to be removed from TechRepublic communications.

Unsubscribe | Send Feedback | FAQ | Advertise | Privacy Policy

© 2018 CBS Interactive, Inc. All rights reserved.

TechRepublic is a registered service mark of CBS Interactive, Inc.

TechRepublic

235 Second Street

San Francisco, CA 94105

U.S.A.