http://qs321.pair.com?node_id=53307

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: Shortcut file
by Chady (Priest) on Jan 21, 2001 at 12:25 UTC
    Is this Perl??
    are you sure you posted inside the right WebSite??
    anyway... it is really a text file that contains this:
    [DEFAULT] BASEURL=http://chady.net/index2.cgi [InternetShortcut] URL=http://chady.net/index2.cgi IconIndex=4 IconFile=C:\WINDOWS\SYSTEM\url.dll
    try it.
    Chady | http://chady.net/
      You'll also want to make sure the user saves it with a .url extension. This will also only work on IE, I think.

      I would do this to supply a default filename:
      my $filename = 'internetshortcut.url'; print "Content-disposition: filename=$filename\n"; print "Content-Type: text/plain\n\n"; # print the content of the URL file.
      The user will be prompted to save the file with the supplied default filename.

      $code or die
      Using perl at
      The Spiders Web