Sign in to follow this  
Followers 0
Guest markz

creating .lnk to a file on ftp server

4 posts in this topic

Hi,

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: "ftp://192.168.1.1/somedir/somefile.exe"

Is this possible?

Thanks

Mark

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:

http://www.cyanwerks.com/file-format-url.html

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

FileCreateShortcut("http://shellcity.net","c:\windows\desktop\shellcity.url","","","","","")

both of them work under 98se using internet explorer 6


 

Spoiler

shoot_zpsfd329d66.png
dontbelieveeverythingyouthink_zps0e1e900

Madness is the first step to understanding...

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

beerman

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

FileCreateShortcut("ftp://10.2..../ADownloader.exe","ADownloader1.url","","","","","")

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

[internetShortcut]

URL=ftp://10.2...../ADownloader.exe

Modified=20F06BA06D07BD014D

Thanks

Mz

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  
Followers 0