-6
\$\begingroup\$

My Gran's Internet Explorer desktop shortcut has broken! We're going to need to write a program that opens it for her, but she has merely bytes of space left on her hard drive! Damn it!

Write a program that opens a Internet Browser.

This is Code Golf. Smallest program wins.

\$\endgroup\$
2
  • 1
    \$\begingroup\$ This would have been a good code-troll question. \$\endgroup\$ May 28 '14 at 6:50
  • 1
    \$\begingroup\$ This is too platform-specific to work as a question without more details. (It's still not going to be a good question even with them, and the correct solution to the mooted problem is to fix the shortcut). \$\endgroup\$ May 28 '14 at 7:07
10
\$\begingroup\$

Python - 18 Bytes

import antigravity
\$\endgroup\$
3
\$\begingroup\$

Linux shell + lynx, 4

lynx

Screenshot:

screenshot

The website that it is displaying: http://lynx.isc.org/

\$\endgroup\$
3
  • 1
    \$\begingroup\$ Or firefox, or chromium, or ... (point being that this isn't the most interesting challenge) \$\endgroup\$
    – Doorknob
    May 28 '14 at 2:58
  • 1
    \$\begingroup\$ @Doorknob Yes, but lynx is shortest. Agree with your point. \$\endgroup\$
    – user12205
    May 28 '14 at 2:58
  • 2
    \$\begingroup\$ w3m is shorter.. \$\endgroup\$ Mar 30 '16 at 22:16
2
\$\begingroup\$

OSX terminal, 10 bytes

open http:

Or 9 bytes

If your Gran's FTP handler is set up to point to a browser:

open ftp:
\$\endgroup\$
1
\$\begingroup\$

Processing, 17

link("http:///");
\$\endgroup\$
0
\$\begingroup\$

Ruby, 47

require 'launchy'
Launchy.open("http://as.com")
\$\endgroup\$

Not the answer you're looking for? Browse other questions tagged or ask your own question.