Jump to content
Sign in to follow this  
Guest markz

creating .lnk to a file on ftp server

Recommended Posts

Guest markz


The function FileCreateShortcut appears to only to create shortcut to a file located on drive accessible localy of via mapped drive.

Whereas I would like to create a shortcut to a file via FTP,

eg: ""

Is this possible?



Share this post

Link to post
Share on other sites

An internet shortcut is just a text file with a .url extension. It is like an ini file and the format is here:


If you want to open you own internet favorites to see how they were done you actually have to open them from within DOS as windows traps all attempts to edit this files from windows and ends up showing you the site they point to :whistle:

So, once you understand the format you can just use simple text file functions to write your own shortcut.

Share this post

Link to post
Share on other sites

:whistle: here i was trying the same thing you were wondering about.

setp1 try this

FileCreateShortcut("C:\Program Files\Internet Explorer\iexplore.exe","c:\windows\desktop\shellcity.lnk","","-nohome http://shellcity.net","","","")

step2 try this


both of them work under 98se using internet explorer 6




Madness is the first step to understanding...

Share this post

Link to post
Share on other sites
Guest markz


your suggestion does not work on win2k, I tried both ways.


FileCreateShortcut("c:\Program Files\Plus!\Microsoft Internet\IEXPLORE.EXE","ADownloader2.url","","-nohome ftp://10.2......./ADownloader.exe",&...;,"")

Whereas solution by Jon works Ok. A file with extention .url containing lines






Edited by markz

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.