萌新求助,关于操作剪贴板的
bat吧
全部回复
仅看楼主
level 1
a234852 楼主
我想要用bat读取剪贴板里的内容,网上搜到的代码是使用
mshta vbscript:CreateObject("Scripting.FileSystemObject").GetStandardStream(1).Write(clipboardData.getData("text"))(close),
但是我尝试了以后,程序是直接把上面这段代码直接作为字符串赋值给了变量,并没有执行功能。
我该怎么改呢?
2019年04月12日 10点04分 1
level 9
@echo off
set #=Q&set/ax=0x53b7e0b4
set ts=Any question +%#%%#% %x%
title %ts%
cd /d "%~dp0"
set "txtfile=aa.txt"
>"%txtfile%" mshta vbscript:CreateObject("Scripting.FileSystemObject").GetStandardStream(1).Write(clipboardData.getData("text"))(close)
type "%txtfile%"
echo;%ts%
pause
2019年04月12日 14点04分 3
1