Windows command prompt tricks – How to copy and paste text plus single keystrokes

Home > Blogs > CompTIA > Windows command prompt tricks – How to copy and paste text plus single keystrokes

Windows command prompt tricks – How to copy and paste text plus single keystrokes

1 0 Mark Jacob
Added by March 26, 2012

It seems that we chug along with the same commands over and over in our daily lives as network admins. More than likely we are on the PowerShell bandwagon and learning it as fast as we can. In the meantime, we may still be using our old standby commands in the Windows command prompt just because we have been using them for so long and don’t want to let them go. I just wanted to mention a couple of tricks that I have found to be useful.

The first one that I love to use stems from my constant attempts to copy text from the command prompt window and failing miserably. Well, there is a way around this failure. Let’s take a look at a command prompt window:

Windows command prompt

If you click on the little black C:\ at the top left of the window, notice what you get:

Windows command prompt copy paste

 

 

 

 

Windows command prompt copy paste edit
Then select Edit, which pops out more choices:

Windows command prompt copy paste more choices

Now I want to select some text, so I have just typed dir to see some output:

Windows command prompt dir trick

I followed the steps above until I could click Mark. Then I just used my mouse to select the text. Once it is highlighted, just hit enter to put it in your clipboard. You can go to your document, your explorer address bar, or anywhere else and paste it in just like any other clipboard contents. I will use Ctrl-V on the text I have highlighted above and watch what happens: WinXP_x64_5400_storage_included_ISO.

As easy as that, I have copied from the command prompt and used the text!

Another command prompt trick is just to save a single keystroke in executing a command. It may not seem like much, but a network admin will use this command many times in a day, so over a long time this can add up. The command is ipconfig/all (or ipconfig/release & ipconfig/renew). You will notice that there is no space in the command. The space is unnecessary. So save a keystroke and leave the space out. Over the course of your entire IT career this could add up to several minutes. Don’t worry, you’ll thank me later.

If you have your own favorites, feel free to drop me a comment. I always enjoy learning other time saving steps and tricks, which means I am happy to leach from your experience and use it as my own.

Until next time…

Mark Jacob
Cisco Instructor – Interface Technical Training
Phoenix, AZ

Videos You May Like

Agile Methodology in Project Management

0 154 0

In this video, you will gain an understanding of Agile and Scrum Master Certification terminologies and concepts to help you make better decisions in your Project Management capabilities. Whether you’re a developer looking to obtain an Agile or Scrum Master Certification, or you’re a Project Manager/Product Owner who is attempting to get your product or … Continue reading Agile Methodology in Project Management

JavaScript for C# Developers – September 24, 2014

0 487 3

Is JavaScript worth taking the time to learn if I’m a server-side .NET developer? How much of C# carries over to JavaScript? In this recorded video from Dan Wahlin’s webinar on September 24,2014, Dan answers these questions and more while also discussing similarities between the languages, key differences, and the future of JavaScript (ES6). If … Continue reading JavaScript for C# Developers – September 24, 2014

Detailed Forensic Investigation of Malware Infections – April 21, 2015

4 608 5

How does an investigator hunt down and identify unknown malware? In this recording of our IT Security training webinar on April 21, 2015, Security expert Mike Danseglio (CISSP / CEH) performed several malware investigations on infected computers and identify symptoms, find root cause, and follow the leads to determine what’s happening. He demonstrated his preferred … Continue reading Detailed Forensic Investigation of Malware Infections – April 21, 2015

Write a Comment

Share your thoughts...

Please fill out the comment form below to post a reply.