开发者

Drag a link into a batch file [duplicate]

This question already has answers here: 开发者_StackOverflow Python GTK Drag and Drop - Get URL (4 answers) Closed 2 years ago.

I like using %1 in my batch files, but dragging a link over from the browser (Chrome) doesn't work.

My batch file is

echo %1
pause

How can I make it accept dragged links?


Dragging links from the browser around seems to be a little magic. Apparently the browser only handles dragging a link into a folder where an appropriate shortcut will be created. Passing the link around as an argument doesn't seem to be possible. You can also notice this when dragging links into other applications. It won't work.

So I'm afraid there is no way how you can accept dragged links from a browser window.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜