Walker News

Copy And Paste Text In Command Prompt

GUI interface is intuitive to use, so as the attractive Windows Aero interface on some of the Windows Vista editions!

Sometime, however, command line utilities are just too convenient and efficient than Windows GUI. Indeed, not all Windows-compatible applications have a GUI!

If you’ve applied the tricks about how to enable full screen mode of Command Prompt window in Windows Vista, you might also interested on how to turn on Command Prompt editing function, i.e copy and paste!

Please take note that Windows Command Prompt copy and paste feature is not unique to Windows Vista – it’s available since Windows 2000 to Windows XP and Windows 2003!

Also, the ALT+Windows keyboard shortcut will not enable full screen mode Command Prompt in Windows Vista, unless the semi-transparent Windows Aero interface is turned off or not supported!

How to tune Windows Vista Command Prompt to work more efficiently?
  1. [ Skip this step if it’s already done ] Create an elevated privilege Command Prompt shortcut in Quick Launch toolbar,
  2. Double-click the Command Prompt shortcut created in step 1 to bring up an elevated privilege Command Prompt window,
  3. Right-click the Command Prompt window title bar and click on the Properties menu,
  4. Locate the Edit Options section and tick the two check-boxes that labelled as Quick Edit Mode and Insert Mode respectively.
  5. Click OK to close the Command Prompt window properties dialog box. Done!

How to copy Command Prompt output text to Notepad or other program?

Hold down the mouse left-click button and drag to highlight the area of Command Prompt output text that you want to copy, as seen in snapshot at below. The selected area is highlighted in white color. To copy the selected text to Windows Clipboard, just press the ENTER key (and the “white” color will gone)!

Vista tips and tricks - how to copy and paste command line output between Notepad and Command Prompt window.

How to insert the copied text in Windows Clipboard to the Windows Command Prompt window?

While at the active Command Prompt window, just right-click the press the mouse left-click mouse button once to insert or paste the copied text in Clipboard onto the Windows Command Prompt!

How useful is the Command Prompt editing feature, i.e. copy and paste?

In case you want to test out a long Windows command line that posted in weblog or website, you don’t have to type it out exactly! Just copy and paste it to the Command Prompt window and hit ENTER key to execute it immediately!

For example, you can copy and paste this lengthy Windows command to disable Vista UAC security feature in the Command Prompt window:
%windir%\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f

Isn’t it easier and less likely with typo error? Have fun!

Custom Search

  1. How To Setup SSH Port Forwarding In 3 Minutes – Walker News 21-07-07@21:47

    […] that, there are at least two attractive features (to me) worth to mention, namely “copy and paste” command output / text and supports flexible screen width to easily reading command […]

  2. Configure Windows Registry In Command Prompt » Walker News 08-08-07@11:43

    […] is a simple command line program used to manipulate or configure Windows Registry keys from Command Prompt, Windows Batch program, Windows script, […]

  3. How To Troubleshoot COM Port Or RS-232 Controller – Walker News 27-09-07@00:04

    […] first COM port is working fine, attach a known good dial-up modem to that COM port. Then, open up Windows Command Prompt window and enter this simple echo command (compatible with MS-DOS Command Prompt and maybe […]

  4. blah 29-12-08@04:57

    i love you…looking for this all over…and by the way, you messed that up slightly, it should be right click for paste, not left…atleast that’s what seems to work on mine (vista ultimate)

  5. Walker 29-12-08@12:08

    Yeah, it’s right-click to paste.

    Thank you for correction (see update).

  6. How To Uninstall IE8? 03-05-09@01:16

    […] IE8 with its Control Panel applet called “Program and Features”. If that happen, copy and paste the following commands to an elevated Command Prompt window and press ENTER to remove IE8 from Windows Vista / Windows […]

  7. Eddie 25-05-09@02:19

    Thanks, those tips are extremely useful.

  8. Chexed 18-11-10@04:41

    FINALLY I don’t have to type path names in again!!! AHAHAHAHAHA!! Thank you!

  9. MsDee 28-02-11@02:50

    Thank you for tip.
    How do you copy the content from Windows Explorer to the clipboard and paste?
    When I do that, I get an error that says something about the installshield.
    Word cannot obtain the data for the c:\program files(x86) Installshield iInformation Link.

2018  •  Privacy Policy