an other solution is to create all the shortcuts on your station and then copy them to a shared place.
in your kix script, you copy theses files to the user profile.
I use these solution to set a common favorite subdir in the user favorites menu.
with the script below, I create the "your favorite" subdir with all favorites organized in subdirs. When the subdirs are ready, I use robocopy to update workstation. Copy is done the first time and then, only modified or added shortcut are copied
code:
break on
cls
$inifile = @scriptdir + "\" + @scriptname + ".ini"
$section = ReadProfileString ( $inifile, "", "")
$arrSection = split($section,chr(10))
for each $section in $arrSection
if $section
? "Répertoire $section"
$localpath = "Your Favorites\$section"
MD $localpath
$url = ReadProfileString ( $inifile, $section, "" )
$arrUrl = split($url,chr(10))
for each $url in $arrUrl
if $url
$desc = ReadProfileString ( $inifile, $section, $url )
$ = CreateURL( $url, $desc, $localpath )
endif
next
endif
next
exit 0
function CreateURL( $url, $description, $path )
? $vbTab + $url + $vbTab + $description
$WshShell = CreateObject("WScript.Shell")
if $description=""
$description=$url
endif
$oUrlLink = $WshShell.CreateShortcut("$path\$description.url")
$oUrlLink.TargetPath = "http://$url"
$oUrlLink.Save
endfunction
with the sample ini file below, I list the shortcut to be created
code:
[subdir 1]
www.microsoft.com=Microsoft Site
url2=description 2
url3=description 3
[subdir 1\subdir 1.1]
www.kixtart.org=kixtart site
http://www.kixtart.org/cgi-bin/Ultimatebb.cgi=kixtart bulletin board
[subdir 2]
url2=description 2
section name is the relative path name
key is the url
value is the description (the name of the shortcut file