Take the 2-minute tour ×

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

How can I make it accept dragged links?

share|improve this question
note the puase is ofcourse in the next line. –  yoshco Dec 8 '09 at 21:58

2 Answers 2

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.

share|improve this answer
any possible hack you can think of? i notice what your saying as i work with diffrent browsers each has some different anomaly regarding dragged links. –  yoshco Dec 10 '09 at 14:04
This probably depends solely on the browser. As far as I know The drag source and drop target work together in some kind of magic to decide whether something can be dropped. And in this case dropping seemingly only works in folders, but not on executables/batch files. At least with IE and FF. –  Joey Dec 10 '09 at 14:16
thanks, shame its so voodoo –  yoshco Jan 6 '10 at 15:20
up vote 0 down vote accepted

best answer yet using python.
Python GTK Drag and Drop - Get URL
still looking for some more information on this.

share|improve this answer

Your Answer


