本帖最后由 pcl_test 于 2015-8-15 15:20 编辑
bat- @echo off
- ::win7及以上系统
- type "c:\1.txt"|clip
- pause
复制代码
- @echo off
- type "c:\1.txt"|mshta "javascript:clipboardData.setData('text',new ActiveXObject('Scripting.FileSystemObject').GetStandardStream(0).ReadAll());close()"
- pause
复制代码 第三方
http://www.bathome.net/s/tool/in ... filterby=help,label
vbs- set ws=createobject("wscript.shell")
- set fso=createobject("scripting.filesystemobject")
- set f=fso.opentextfile("c:\1.txt",1)
- ws.run "mshta vbscript:ClipBoardData.setData(""Text"","""&f.readall&""")(window.close)", 0, true
复制代码
|