@echo off
set /a n=%computername:~3%-1
type a.txt|mshta "javascript:clipboardData.setData('text',new ActiveXObject('Scripting.FileSystemObject').GetStandardStream(0).ReadAll().split('\r\n')[%n%]);close()"
这个是读取文本指定行内容拷贝到剪贴板,该怎么整合本帖要求改注册表mac,大大们给点启示吧!先谢过了啊!
for /f "delims=" %%i in ('mshta "javascript:var s=clipboardData.getData('text');if(s)new ActiveXObject('Scripting.FileSystemObject').GetStandardStream(1).Write(s);close()"') do set "mac=%%i"