Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: Shortcut file

by Chady (Priest)
on Jan 21, 2001 at 12:25 UTC ( #53311=note: print w/replies, xml ) Need Help??

in reply to Shortcut file

Is this Perl??
are you sure you posted inside the right WebSite??
anyway... it is really a text file that contains this:
[DEFAULT] BASEURL= [InternetShortcut] URL= IconIndex=4 IconFile=C:\WINDOWS\SYSTEM\url.dll
try it.
Chady |

Replies are listed 'Best First'.
Re: Re: Shortcut file
by $code or die (Deacon) on Jan 21, 2001 at 22:14 UTC
    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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://53311]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2017-10-19 19:24 GMT
Find Nodes?
    Voting Booth?
    My fridge is mostly full of:

    Results (255 votes). Check out past polls.