Guest markz Posted December 11, 2003 Posted December 11, 2003 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
Administrators Jon Posted December 11, 2003 Administrators Posted December 11, 2003 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.htmlIf 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 So, once you understand the format you can just use simple text file functions to write your own shortcut. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/
Somerset Posted December 12, 2003 Posted December 12, 2003 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
Guest markz Posted December 14, 2003 Posted December 14, 2003 (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 December 14, 2003 by markz
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now