Jump to content

creating .lnk to a file on ftp server

Guest markz

Recommended Posts


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?



Link to comment
Share on other sites

  • Administrators

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.

Link to comment
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

Link to comment
Share on other sites


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
Link to comment
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

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...