Copy and paste from Windows XP Pro’s command prompt straight to the Clipboard

If you need to copy output from a command and paste it into a Windows program, such as Notepad, while working at the command prompt, chances are you’ll try to use the Mark and Copy commands on the command prompt’s Edit menu. A better way to get information from a command prompt and onto the Clipboard is the Clip.exe command line tool.

Clip.exe comes with Windows Server 2003, but it also works in Windows XP Professional. Simply copy Clip.exe from the WindowsSystem32 directory on a Windows Server 2003 system, and then paste it into the WindowsSystem32 directory on a Windows XP system. (If you don’t have access to Windows Server 2003, you can download a copy of Clip.exe from Daniel Petri’s IT Knowledgebase site.)

Google Ads:

Once you have a copy of Clip.exe on your Windows XP system, using it is as easy as appending the pipe and the clip command (| clip) to the end of your command line. For example, you can use this command to copy the directory listing to the clipboard (Dir | clip), or you can use it to collect, copy, and paste the results of the Ipconfig command (Ipconfig /all | clip).

Note: This tip applies only to Windows XP Professional.

Related Articles

  • Extend Windows XP’s Clipboard with Network Clipboard and ViewerExtend Windows XP’s Clipboard with Network Clipboard and Viewer
    If you have ever copied something to Windows XP’s Clipboard and then wished that you had the same thing on the Clipboard of another network computer, check out...
  • Customize Windows XP’s General tab
    It’s easy to customize Windows XP’s General tab in the System Properties dialog box with your support contact information and your company’s logo just by using...
  • Avoid Eyestrain in your PC – EyeDefenderAvoid Eyestrain in your PC – EyeDefender
    EyeDefender lets you avoid eyestrain and puts the sparkle back in your eyes. EyeDefender is a freeware rest reminder designed to prevent Computer Vision...
  • AutoRuns for Windows v9.33AutoRuns for Windows v9.33
    Introduction This utility, which has the most comprehensive knowledge of auto-starting locations of any startup monitor, shows you what programs are configured...
  • Speed UP XP Registry Tweaking..Speed UP XP Registry Tweaking..
    More Power: Registry Hacks to Speed Up XP Hack #110Put your Registry-hacking knowledge to good use: hack your way to runningWindows XP at top speed.Creating and...
Leave a comment