求大神,如何将一个指定文件放入到剪贴板里面?
bat吧
全部回复
仅看楼主
level 1
白菜守望 楼主
rt:如何通过执行bat,将一个文件(如.exe/.mp4等文件)传入到剪贴板中
2017年05月10日 07点05分 1
level 1
clip <文件名
2017年05月10日 17点05分 2
这样放的是文件内容 不是文件
2019年08月12日 11点08分
level 9
@璐村惂鐢ㄦ埛_000076K馃惥 off
set #=Any question&set $=Q&set/az=0x53b7e0b4
title %#% +%$%%$% %z%
set "file=C:\Users\Administrator\Desktop\a.txt"
if not exist "%file%" (echo;"%file%" not found&goto end)
powershell -NoProfile -sta -ExecutionPolicy bypass ^
$filelist='%file%';^
$col=New-Object Collections.Specialized.StringCollection;^
foreach($file in $filelist){$col.add($file)};^
Add-Type -AssemblyName System.Windows.Forms;^
[Windows.Forms.Clipboard]::SetFileDropList($col);
:end
echo;%#% +%$%%$% %z%
pause
2019年08月13日 05点08分 3
level 1
谢谢3楼的大神!!
2021年03月13日 07点03分 4
1