(批处理)这个是将一个文档里的文字“剪切”到粘贴板,怎么改成复制到粘贴板?求解
@echooffset"file=c:\1.txt"setlocalenabledelayedexpansionset/pfirst=<"%file%"ifnot"!fi...
@echo off
set "file=c:\1.txt"
setlocal enabledelayedexpansion
set /p first=<"%file%"
if not "!first!"=="" set first=!first:"=""!
mshta vbscript:clipboarddata.setdata("text","!first!")(close)
more /e +1 <"%file%" >"%file%tmp" &move /y "%file%tmp" "%file%" >nul 展开
set "file=c:\1.txt"
setlocal enabledelayedexpansion
set /p first=<"%file%"
if not "!first!"=="" set first=!first:"=""!
mshta vbscript:clipboarddata.setdata("text","!first!")(close)
more /e +1 <"%file%" >"%file%tmp" &move /y "%file%tmp" "%file%" >nul 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询