Here is a utility called clip.exe that you can use. Just include the output of your script or any other command in the clip.exe file (first, put it in your path somewhere. If you don’t have the usual place for these types of utilities, you can dump it into the directory that you usually run your scripts, or I know what people use c:\Windows\system32as a last resort ...):
somescript.bat | clip
Then insert.
source
share