{"id":1723,"date":"2016-09-13T10:40:25","date_gmt":"2016-09-13T10:40:25","guid":{"rendered":"http:\/\/andyparkes.co.uk\/blog\/?p=1723"},"modified":"2017-10-12T15:37:43","modified_gmt":"2017-10-12T15:37:43","slug":"command-prompt-and-the-clipboard","status":"publish","type":"post","link":"https:\/\/andyparkes.co.uk\/blog\/index.php\/2016\/09\/13\/command-prompt-and-the-clipboard\/","title":{"rendered":"Command Prompt and the Clipboard"},"content":{"rendered":"<p>Filed under <em>\u201cI didn\u2019t know you could do that\u201d<\/em>.<\/p>\n<p>Something I discovered recently I thought it was one of those things I\u2019d just missed over the years but after a conversation I had in the office I thought it might be worth sharing here too.<\/p>\n<p>Normally when working with the command prompt if you want to copy some output you have to switch from the keyboard to the mouse.<\/p>\n<p><a href=\"https:\/\/andyparkes.co.uk\/blog\/wp-content\/uploads\/2016\/09\/Command.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; margin: 7px 12px 7px 0px; display: inline; padding-right: 0px; border: 0px;\" title=\"Command\" src=\"https:\/\/andyparkes.co.uk\/blog\/wp-content\/uploads\/2016\/09\/Command_thumb.png\" alt=\"Command\" width=\"524\" height=\"158\" border=\"0\" \/><\/a><\/p>\n<p>Which is fine, but if you\u2019re working with the keyboard (because you know, command prompt!) switching between that and the mouse can break your flow, well it does for me.<\/p>\n<p>Turns out you can redirect  output straight to the clipboard by piping to clip.exe<\/p>\n<p>e.g<\/p>\n<p><strong>Ping google.com | clip<br \/>\n<\/strong><\/p>\n<p>The output goes to the clipboard ready for pasting elsewhere.<\/p>\n<p>This is also particularly useful if the output is long and fills the visible area of the screen.<\/p>\n<p>This is the output from \u201cDriverQuery\u201d, you\u2019d have hard time copying all of that with the mouse<\/p>\n<p><a href=\"https:\/\/andyparkes.co.uk\/blog\/wp-content\/uploads\/2016\/09\/Command-2.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; margin: 7px 12px 7px 0px; display: inline; padding-right: 0px; border: 0px;\" title=\"Command 2\" src=\"https:\/\/andyparkes.co.uk\/blog\/wp-content\/uploads\/2016\/09\/Command-2_thumb.png\" alt=\"Command 2\" width=\"526\" height=\"287\" border=\"0\" \/><\/a><\/p>\n<p>Useful thing to know!<\/p>\n<p>This works in PowerShell too and it\u2019s where I use it most.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Filed under \u201cI didn\u2019t know you could do that\u201d. Something I discovered recently I thought it was one of those things I\u2019d just missed over the years but after a conversation I had in the office I thought it might be worth sharing here too. Normally when working with the command prompt if you want<\/p>\n<p><a class=\"readmore\" href=\"https:\/\/andyparkes.co.uk\/blog\/index.php\/2016\/09\/13\/command-prompt-and-the-clipboard\/\"><span class=\"arrow-right icon\"><\/span>Read More<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[74,57],"tags":[],"class_list":["post-1723","post","type-post","status-publish","format-standard","hentry","category-useful-commands","category-windows"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.11 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Command Prompt and the Clipboard - Andy&#039;s Techie Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/andyparkes.co.uk\/blog\/index.php\/2016\/09\/13\/command-prompt-and-the-clipboard\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Command Prompt and the Clipboard - Andy&#039;s Techie Blog\" \/>\n<meta property=\"og:description\" content=\"Filed under \u201cI didn\u2019t know you could do that\u201d. Something I discovered recently I thought it was one of those things I\u2019d just missed over the years but after a conversation I had in the office I thought it might be worth sharing here too. Normally when working with the command prompt if you wantRead More\" \/>\n<meta property=\"og:url\" content=\"https:\/\/andyparkes.co.uk\/blog\/index.php\/2016\/09\/13\/command-prompt-and-the-clipboard\/\" \/>\n<meta property=\"og:site_name\" content=\"Andy&#039;s Techie Blog\" \/>\n<meta property=\"article:published_time\" content=\"2016-09-13T10:40:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-10-12T15:37:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/andyparkes.co.uk\/blog\/wp-content\/uploads\/2016\/09\/Command_thumb.png\" \/>\n<meta name=\"author\" content=\"Andy Parkes\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Andy Parkes\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/andyparkes.co.uk\/blog\/index.php\/2016\/09\/13\/command-prompt-and-the-clipboard\/\",\"url\":\"https:\/\/andyparkes.co.uk\/blog\/index.php\/2016\/09\/13\/command-prompt-and-the-clipboard\/\",\"name\":\"Command Prompt and the Clipboard - Andy&#039;s Techie Blog\",\"isPartOf\":{\"@id\":\"https:\/\/andyparkes.co.uk\/blog\/#website\"},\"datePublished\":\"2016-09-13T10:40:25+00:00\",\"dateModified\":\"2017-10-12T15:37:43+00:00\",\"author\":{\"@id\":\"https:\/\/andyparkes.co.uk\/blog\/#\/schema\/person\/3534e8ac6b1bec765cd061feff56679d\"},\"breadcrumb\":{\"@id\":\"https:\/\/andyparkes.co.uk\/blog\/index.php\/2016\/09\/13\/command-prompt-and-the-clipboard\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/andyparkes.co.uk\/blog\/index.php\/2016\/09\/13\/command-prompt-and-the-clipboard\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/andyparkes.co.uk\/blog\/index.php\/2016\/09\/13\/command-prompt-and-the-clipboard\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/andyparkes.co.uk\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Command Prompt and the Clipboard\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/andyparkes.co.uk\/blog\/#website\",\"url\":\"https:\/\/andyparkes.co.uk\/blog\/\",\"name\":\"Andy&#039;s Techie Blog\",\"description\":\"Professional Geek\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/andyparkes.co.uk\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/andyparkes.co.uk\/blog\/#\/schema\/person\/3534e8ac6b1bec765cd061feff56679d\",\"name\":\"Andy Parkes\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/andyparkes.co.uk\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/3824cbf53df51d7ca5cf809b6ad81a157fbfff2292e36ab8666f04ddad06bfcc?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/3824cbf53df51d7ca5cf809b6ad81a157fbfff2292e36ab8666f04ddad06bfcc?s=96&d=mm&r=g\",\"caption\":\"Andy Parkes\"},\"description\":\"Andy Parkes is Technical Director at Coventry based IT support company IBIT Solutions. Formerly, coordinator of AMITPRO and Microsoft Partner Area Lead for 2012-2013. He also isn't a fan of describing himself in the third person.\",\"sameAs\":[\"http:\/\/www.andyparkes.co.uk\/blog\"],\"url\":\"https:\/\/andyparkes.co.uk\/blog\/index.php\/author\/andyparkes\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Command Prompt and the Clipboard - Andy&#039;s Techie Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/andyparkes.co.uk\/blog\/index.php\/2016\/09\/13\/command-prompt-and-the-clipboard\/","og_locale":"en_US","og_type":"article","og_title":"Command Prompt and the Clipboard - Andy&#039;s Techie Blog","og_description":"Filed under \u201cI didn\u2019t know you could do that\u201d. Something I discovered recently I thought it was one of those things I\u2019d just missed over the years but after a conversation I had in the office I thought it might be worth sharing here too. Normally when working with the command prompt if you wantRead More","og_url":"https:\/\/andyparkes.co.uk\/blog\/index.php\/2016\/09\/13\/command-prompt-and-the-clipboard\/","og_site_name":"Andy&#039;s Techie Blog","article_published_time":"2016-09-13T10:40:25+00:00","article_modified_time":"2017-10-12T15:37:43+00:00","og_image":[{"url":"https:\/\/andyparkes.co.uk\/blog\/wp-content\/uploads\/2016\/09\/Command_thumb.png"}],"author":"Andy Parkes","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Andy Parkes","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/andyparkes.co.uk\/blog\/index.php\/2016\/09\/13\/command-prompt-and-the-clipboard\/","url":"https:\/\/andyparkes.co.uk\/blog\/index.php\/2016\/09\/13\/command-prompt-and-the-clipboard\/","name":"Command Prompt and the Clipboard - Andy&#039;s Techie Blog","isPartOf":{"@id":"https:\/\/andyparkes.co.uk\/blog\/#website"},"datePublished":"2016-09-13T10:40:25+00:00","dateModified":"2017-10-12T15:37:43+00:00","author":{"@id":"https:\/\/andyparkes.co.uk\/blog\/#\/schema\/person\/3534e8ac6b1bec765cd061feff56679d"},"breadcrumb":{"@id":"https:\/\/andyparkes.co.uk\/blog\/index.php\/2016\/09\/13\/command-prompt-and-the-clipboard\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/andyparkes.co.uk\/blog\/index.php\/2016\/09\/13\/command-prompt-and-the-clipboard\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/andyparkes.co.uk\/blog\/index.php\/2016\/09\/13\/command-prompt-and-the-clipboard\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/andyparkes.co.uk\/blog\/"},{"@type":"ListItem","position":2,"name":"Command Prompt and the Clipboard"}]},{"@type":"WebSite","@id":"https:\/\/andyparkes.co.uk\/blog\/#website","url":"https:\/\/andyparkes.co.uk\/blog\/","name":"Andy&#039;s Techie Blog","description":"Professional Geek","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/andyparkes.co.uk\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/andyparkes.co.uk\/blog\/#\/schema\/person\/3534e8ac6b1bec765cd061feff56679d","name":"Andy Parkes","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/andyparkes.co.uk\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/3824cbf53df51d7ca5cf809b6ad81a157fbfff2292e36ab8666f04ddad06bfcc?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3824cbf53df51d7ca5cf809b6ad81a157fbfff2292e36ab8666f04ddad06bfcc?s=96&d=mm&r=g","caption":"Andy Parkes"},"description":"Andy Parkes is Technical Director at Coventry based IT support company IBIT Solutions. Formerly, coordinator of AMITPRO and Microsoft Partner Area Lead for 2012-2013. He also isn't a fan of describing himself in the third person.","sameAs":["http:\/\/www.andyparkes.co.uk\/blog"],"url":"https:\/\/andyparkes.co.uk\/blog\/index.php\/author\/andyparkes\/"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pmvJ6-rN","jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/andyparkes.co.uk\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1723","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/andyparkes.co.uk\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/andyparkes.co.uk\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/andyparkes.co.uk\/blog\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/andyparkes.co.uk\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=1723"}],"version-history":[{"count":2,"href":"https:\/\/andyparkes.co.uk\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1723\/revisions"}],"predecessor-version":[{"id":1742,"href":"https:\/\/andyparkes.co.uk\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1723\/revisions\/1742"}],"wp:attachment":[{"href":"https:\/\/andyparkes.co.uk\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=1723"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/andyparkes.co.uk\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=1723"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/andyparkes.co.uk\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=1723"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}