如何写入剪贴板以获得“创建快捷方式”? Windows 资源管理器中的选项?

发布于 2024-12-02 06:29:19 字数 81 浏览 0 评论 0原文

将文件下拉列表放在剪贴板上后 - 在 Windows 资源管理器中右键单击不会给我“创建快捷方式”的选项。我怎样才能得到它?

谢谢。

After putting a filedroplist on the clipboard – right clicking in windows explorer doesn’t give me the option to “create shortcut”. How do I get that?

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

一曲爱恨情仇 2024-12-09 06:29:19

您需要存在其他格式,尤其是 OLE 格式。

试验我的应用程序(ClipMate)的诊断模式,我发现当您将文件复制到剪贴板,然后右键单击 Windows 桌面时,将从剪贴板读取以下格式:

Ole Private Data
DataObject
Preferred DropEffect
HDROP
Shell IDList Array

然后当您实际执行时“粘贴快捷方式”,拉出附加格式:

Shell Object Offsets

我能够在没有首选 DropEffect 的情况下执行“粘贴快捷方式”,所以我认为这是可选的。我在Windows XP、SP3上进行了测试。 YMMV 与其他平台。

You need other formats present, particularly the OLE stuff.

Experimenting with a diagnostic mode of my app (ClipMate), I see that when you have copied a file to the clipboard, and then right-click on the windows desktop, the following formats are read from the clipboard:

Ole Private Data
DataObject
Preferred DropEffect
HDROP
Shell IDList Array

And then when you actually perform "paste shortcut", an additional format is pulled:

Shell Object Offsets

I was able to perform a "paste shortcut" without the Preferred DropEffect, so I think that's optional. I tested on Windows XP, SP3. YMMV with other platforms.

一刻暧昧 2024-12-09 06:29:19

这不会像你想要的那样工作。当您将文件拖动到计算机上并释放鼠标右键时,不会涉及剪贴板。您可以通过打开记事本,编写一些文本并复制它来测试这一点,然后通过右键单击在计算机上创建快捷方式,最后将文本粘贴回记事本中。当您执行此操作时,您会看到文本仍然存在,这意味着没有文件放置在其“上方”。

因此,您无法对剪贴板执行任何操作来更改“在此处创建快捷方式”的含义。您可以做的最接近的事情是创建一个快捷方式,如 @IAbstract 所说,并将该快捷方式复制到剪贴板。您将能够右键单击并粘贴快捷方式。有关更多信息,请参阅本文拖放删除动态创建的快捷方式

This won't work as you want it to. When you drag a file on your computer and release the right-mouse the clipboard is not involved. You can test this by opening notepad, writing some text and copying it, then create a shortcut on your computer through right-clicking and finally pasting the text back into notepad. When you do this you'll see the text is still there which means no file was place "over" it.

So there's nothing that you can do to the clipboard to change the "create shortcut here" meaning. The closest thing that you can do is to create a shortcut as @IAbstract said and copy that shortcut to the clipboard. The you'll be able to right-click and paste the shortcut. See this article for more Drag & drop of a dynamically created shortcut

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文