求大神,如何将指定目录下的一个不固定名称的文件复制到粘贴板上
bat吧
全部回复
仅看楼主
level 1
gogogo…… 楼主
求大神,如何将指定目录下的一个不固定名称的文件复制到粘贴板上
2021年07月23日 08点07分 1
level 1
gogogo…… 楼主
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
目前是找到吧里大神的代码,是指定文件名的
2021年07月23日 08点07分 3
level 1
gogogo…… 楼主
dd
2021年07月27日 03点07分 4
1