- @echo off
- for /f "delims=" %%a in ('mshta "javascript:var s=clipboardData.getData('text');if(s)new ActiveXObject('Scripting.FileSystemObject').GetStandardStream(1).Write(s);close();"') do set "str=%%a"
- for /f "tokens=1* delims==" %%a in ('findstr /l "%str%" "a.txt" 2^>nul') do set "result=%%b"
- if defined result (echo;%result%) else echo;没有该字段
- pause
复制代码
|