- @echo off&setlocal enabledelayedexpansion
- for %%a in (*.txt) do (set /a n+=1&set "#!n!=%%~nxa")
- set /a f=%random%%%!n!+1
- type "!#%f%!"|mshta "javascript:clipboardData.setData('text',new ActiveXObject('Scripting.FileSystemObject').GetStandardStream(0).ReadAll());close()"
- echo;已复制[!#%f%!]的内容到剪贴板&ping -n 2 0 >nul& exit
复制代码
|