Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
startdir=RegQueryValue(@REGMACHINE,"Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders[Common Desktop]") programFiles=RegQueryValue(@REGMACHINE,"Software\Microsoft\Windows\CurrentVersion[ProgramFilesDir]") iconFile = strCat(programFiles,"\swaicon.ico") DirChange(startDir) link = strCat(startDir,"\SWA.LNK") ShortcutMake(link,"https://a.b.com","","",@ZOOMED,0) ShortCutExtra(link, "MyABCcom", "", iconFile,0,0)
You can use IniWritePvt to create a .URL file:
;.Url Format ;[InternetShortcut] ;URL=http://www.example.com ;IconFile=c:\somedir\iconfile.exe ;IconIndex=0 IniWritePvt("InternetShortcut", "URL", "https://a.b.com", link) IniWritePvt("InternetShortcut", "IconFile", "c:\somedir\iconfile.exe", link) IniWritePvt("InternetShortcut", "IconIndex", 0, link)
Article ID: W16218
File Created: 2004:03:30:15:43:22
Last Updated: 2004:03:30:15:43:22