Windows¤Ç¥³¥Þ¥ó¥É¤Î¸å¤Ë¡Öclip¡×¤ò¥Ñ¥¤¥×¤Ç¤Ä¤Ê¤²¤ë¤È½ÐÎϤ¬¥¯¥ê¥Ã¥×¥Ü¡¼¥É¤ËÆþ¤Ã¤ÆÊØÍø
Windows¤ò»È¤Ã¤Æ¤¤¤ë¤È¡Ö¡Øipconfig¡Ù¤ò¼Â¹Ô¤·¤Æ¥Í¥Ã¥È¥ï¡¼¥¯¾ðÊó¤òɽ¼¨¤·¡¢¥³¥Ô¥Ú¤·¤ÆµÏ¿¤·¤¿¤êÊó¹ð¤·¤¿¤ê¤¹¤ë¡×¤È¤¤¤Ã¤¿¤è¤¦¤Ë¡Ö¥³¥Þ¥ó¥É¤Î½ÐÎÏ·ë²Ì¤ò¥³¥Ô¥Ú¤¹¤ë¡×¤È¤¤¤¦Áàºî¤¬É¬Íפˤʤ뤳¤È¤¬¤¢¤ê¤Þ¤¹¡£¤½¤ó¤Ê»þ¤Ï¡Öclip¡×¤È¤¤¤¦¥³¥Þ¥ó¥É¤ò»È¤¨¤Ð¥µ¥¯¥Ã¤È¥³¥Ô¥Ú²Äǽ¤Ç¤¹¡£
clip | Microsoft Learn
https://learn.microsoft.com/ja-jp/windows-server/administration/windows-commands/clip
Tip of the week: Use clip to pipe the output of your command to the clipboard
byu/jenmsft inWindows11
¡Öclip¡×¥³¥Þ¥ó¥É¤Ï¡Ö¾¤Î¥³¥Þ¥ó¥É¤Î½ÐÎϤò¥¯¥ê¥Ã¥×¥Ü¡¼¥É¤ËÊݸ¤¹¤ë¡×¤È¡Ö»ØÄꤷ¤¿¥Õ¥¡¥¤¥ë¤ÎÆâÍƤò¥¯¥ê¥Ã¥×¥Ü¡¼¥É¤ËÊݸ¤¹¤ë¡×¤È¤¤¤¦µ¡Ç½¤òÈ÷¤¨¤Æ¤¤¤Þ¤¹¡£º£²ó¤ÏÁ°¼Ô¤Îµ¡Ç½¤ò¼ÂºÝ¤Ë»È¤Ã¤Æ¤ß¤Þ¤¹¡£¤Ê¤ª¡¢Windows¤Ëɸ½àÅëºÜ¤µ¤ì¤Æ¤¤¤ëPowerShell¤Çclip¤ò»È¤¦¤Èʸ»ú²½¤±¤¬È¯À¸¤¹¤ë¤Î¤Ç¡¢¥³¥Þ¥ó¥É¥×¥í¥ó¥×¥È¤Ç¤ÎÍøÍѤò¿ä¾©¤·¤Þ¤¹¡£
¤Þ¤º¡¢Windows¥¡¼¤ÈR¥¡¼¤òƱ»þ²¡¤·¤·¤Æ¡Ö¥Õ¥¡¥¤¥ë̾¤ò»ØÄꤷ¤Æ¼Â¹Ô¡×¥À¥¤¥¢¥í¥°¤òµ¯Æ°¤·¡¢¡Öcmd¡×¤ÈÆþÎϤ·¤Æ¡ÖOK¡×¤ò¥¯¥ê¥Ã¥¯¡£
¥³¥Þ¥ó¥É¥×¥í¥ó¥×¥È¤¬µ¯Æ°¤·¤¿¤é¥³¥Þ¥ó¥É¤òÆþÎϤ·¤ÆEnter¥¡¼¤ò²¡¤·¤Æ¼Â¹Ô¤·¤Þ¤¹¡£º£²ó¤Ï¡Ö¥Í¥Ã¥È¥ï¡¼¥¯¾ðÊó¤ò¥¯¥ê¥Ã¥×¥Ü¡¼¥É¤ËÊݸ¡×¤È¤¤¤¦Áàºî¤ò¼Â¹Ô¤·¤¿¤¤¤Î¤Ç¡Öipconfig | clip¡×¤ÈÆþÎϤ·¤ÆEnter¥¡¼¤ò²¡¤·¤Þ¤·¤¿¡£¤Ê¤ª¡¢ÆüËܸ쥡¼¥Ü¡¼¥É¤Î¾ì¹ç¡¢¡Ö|¡×¤ÏShift¥¡¼¤È¡ï¥¡¼¤ÎƱ»þ²¡¤·¤ÇÆþÎϲÄǽ¡£¤Þ¤¿¡¢¡Öipconfig¡×¡Ö|¡×¡Öclip¡×¤Î´Ö¤Ë¤ÏȾ³Ñ¥¹¥Ú¡¼¥¹¤¬Æþ¤ê¤Þ¤¹¡£
¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ë¤È°ì½Ö¤Ç½èÍý¤¬½ªÎ»¤·¤Þ¤¹¡£¤³¤ì¤Ç¡¢¥Í¥Ã¥È¥ï¡¼¥¯¾ðÊ󤬥¯¥ê¥Ã¥×¥Ü¡¼¥É¤ËÊݸ¤µ¤ì¤Þ¤·¤¿¡£
¸å¤Ï¡¢¥á¥âÄ¢¤ä¥¦¥§¥ÖÆþÎÏ¥Õ¥©¡¼¥à¤Ê¤É¤Ë¥Í¥Ã¥È¥ï¡¼¥¯¾ðÊó¤ò¥Ú¡¼¥¹¥È¤¹¤ì¤ÐOK¡£»î¤·¤Ë¡¢¥á¥âÄ¢¤òµ¯Æ°¤·¤Æ±¦¥¯¥ê¥Ã¥¯¥á¥Ë¥å¡¼Æâ¤Î¡ÖŽ¤êÉÕ¤±¡×¤ò¥¯¥ê¥Ã¥¯¡£
¤¹¤ë¤È¡¢¥¯¥ê¥Ã¥×¥Ü¡¼¥É¤ËÊݸ¤µ¤ì¤Æ¤¤¤¿¥Í¥Ã¥È¥ï¡¼¥¯¾ðÊ󤬥á¥âÄ¢¤ËÆþÎϤµ¤ì¤Þ¤·¤¿¡£clip¤ò»È¤¦¤³¤È¤Ç¡Ö¥³¥Þ¥ó¥É¥×¥í¥ó¥×¥È¤Ëɽ¼¨¤µ¤ì¤¿¥Í¥Ã¥È¥ï¡¼¥¯¾ðÊó¤òÁªÂò¤·¤Æ¥³¥Ô¡¼¡×¤È¤¤¤¦Áàºî¤ò¾Êά¤Ç¤¤ë¤È¤¤¤¦¤ï¤±¤Ç¤¹¡£
¤â¤Á¤í¤ó¡¢clip¤Ïipconfig°Ê³°¤Î¥³¥Þ¥ó¥É¤Ç¤âµ¡Ç½¤·¤Þ¤¹¡£»î¤·¤Ë¡Ösysteminfo | clip¡×¤È¤¤¤¦¥³¥Þ¥ó¥É¤ò¼Â¹Ô¡£
¥·¥¹¥Æ¥à¾ðÊó¤ò¥³¥Ô¡¼¤Ç¤¤Þ¤·¤¿¡£
¤µ¤é¤Ë¡¢¡Ö¡û¡û¤È¤¤¤¦¥³¥Þ¥ó¥É¤Î½ÐÎϤò¥¯¥ê¥Ã¥×¥Ü¡¼¥É¤ËÊݸ¤¹¤ë¡×¤È¤¤¤¦¥³¥Þ¥ó¥É¤ò¥·¥ç¡¼¥È¥«¥Ã¥È¤ËÅÐÏ¿¤¹¤ì¤Ð¡¢¡Ö¥·¥ç¡¼¥È¥«¥Ã¥È¤ò¥À¥Ö¥ë¥¯¥ê¥Ã¥¯¤¹¤ë¤À¤±¤ÇÌÜŪ¤Î¾ðÊó¤ò¥³¥Ô¡¼¤¹¤ë¡×¤È¤¤¤¦Æ°ºî¤ò¼Â¸½¤Ç¤¤Þ¤¹¡£»î¤·¤Ë¡Ö¥À¥Ö¥ë¥¯¥ê¥Ã¥¯¤¹¤ë¤À¤±¤Ç¥Í¥Ã¥È¥ï¡¼¥¯¾ðÊó¤ò¥³¥Ô¡¼¤Ç¤¤ë¥·¥ç¡¼¥È¥«¥Ã¥È¡×¤òºî¤Ã¤Æ¤ß¤Þ¤¹¡£
¤Þ¤º¡¢¥Ç¥¹¥¯¥È¥Ã¥×¤ò±¦¥¯¥ê¥Ã¥¯¤·¤Æ¡Ö¿·µ¬ºîÀ®¡×¤ò¥¯¥ê¥Ã¥¯¤·¤Æ¤«¤é¡Ö¥·¥ç¡¼¥È¥«¥Ã¥È¡×¤ò¥¯¥ê¥Ã¥¯¡£
¡Ö¹àÌܤξì½ê¤òÆþÎϤ·¤Æ¤¯¤À¤µ¤¤¡×¤Èɽ¼¨¤µ¤ì¤¿ÆþÎÏÍó¤Ë¡ÖC:\Windows\System32\cmd.exe /c ipconfig | clip¡×¤òÆþÎϤ·¤Æ¡Ö¼¡¤Ø¡×¤ò¥¯¥ê¥Ã¥¯¡£
¥·¥ç¡¼¥È¥«¥Ã¥È¤Ë̾Á°¤òÉÕ¤±¤Æ¡Ö´°Î»¡×¤ò¥¯¥ê¥Ã¥¯¡£¤³¤ì¤Ç¥·¥ç¡¼¥È¥«¥Ã¥È¤ÎºîÀ®¤Ï´°Î»¤Ç¤¹¡£
¸å¤Ï¡¢¥·¥ç¡¼¥È¥«¥Ã¥È¤ò¥¯¥ê¥Ã¥¯¤¹¤ë¤À¤±¤Ç¥Í¥Ã¥È¥ï¡¼¥¯¾ðÊó¤ò¥³¥Ô¡¼²Äǽ¤Ç¤¹¡£¥·¥ç¡¼¥È¥«¥Ã¥È¤Î¥³¥Þ¥ó¥É¤òÉôʬ¤ò½ñ¤´¹¤¨¤ì¤Ð¾¤Î¾ðÊó¤ò¥³¥Ô¡¼¤¹¤ë¤³¤È¤â²Äǽ¡£Î㤨¤Ð¡¢¡ÖC:\Windows\System32\cmd.exe /c echo test@test.net | clip¡×¤È¤¤¤¦¥³¥Þ¥ó¥É¤òÅÐÏ¿¤·¤Æ¡Ö¥À¥Ö¥ë¥¯¥ê¥Ã¥¯¤¹¤ë¤À¤±¤Ç¥á¡¼¥ë¥¢¥É¥ì¥¹¤ò¥³¥Ô¡¼¡×¤È¤¤¤¦Æ°ºî¤ò¼Â¸½¤¹¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£