Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Shortcut file

by Anonymous Monk
on Jan 21, 2001 at 10:56 UTC ( #53307=perlquestion: print w/replies, xml ) Need Help??
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Does anybody know how to create a shortcut file, a desired (not default) icon plus URL in it, so the user can download it in one step to her desktop and click the shortcut to the URL?

Thanks in advance.

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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://53307]
Approved by root
help
Chatterbox?
[atcroft]: Lady_Aleena: I found the L<name|section> syntax, which describes linking to a perl manual page, and L<text|url> to link to a web page. The reason I asked was because I was on search.cpan.org looking at a module,
[atcroft]: and it referred to several other modules, but the links went to metacpan.org. I found that a bit of a surprise, and it got me wondering if there was a "standard" way to link to other modules in the documentation on CPAN.

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2017-05-27 03:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?