5

Possible Duplicate:
How do I escape ampersands in batch files?

I am attempting the following, in Windows:

 $ start http://code.google.com/p/mulder/downloads/detail?name=MPUI.2011-06-09.Full-Package.exe&can=2&q=MPlayer&sort=-uploaded

Unfortunately, it seems that no amount of quoting or escaping actually pulls up the full URL in a browser, only partial (up through can=2) or what not. How can I do it?

Community
  • 1
  • 1
rogerdpack
  • 62,887
  • 36
  • 269
  • 388

2 Answers2

5

You can use ^ to escape & in teh command line like this:

 $ start http://code.google.com/p/mulder/downloads/detail?name=MPUI.2011-06-09.Full-Package.exe^&can=26^&q=MPlayer^&sort=-uploaded
Tom Hazel
  • 3,232
  • 2
  • 20
  • 20
2

Try this

start "test" "C:\Program Files (x86)\Internet Explorer\iexplore.exe" "http://code.google.com/p/mulder/downloads/detail?name=MPUI.2011-06-09.Full-Package.exe&can=2&q=MPlayer&sort=-uploaded"

It worked for me in Windows 7. (all on one line).

I hope this helps.

shellter
  • 36,525
  • 7
  • 83
  • 90
  • 1
    Fascinatingly, this works too. start "x" "http://code.google.com/p/mulder/downloads/detail?name=MPUI.2011-06-09.Full-Package.exe&can=2&q=MPlayer&sort=-uploaded" without requiring any escaping. weird! – rogerdpack Jun 17 '11 at 13:44
  • This way worked too! – rogerdpack May 16 '18 at 15:33