**DONOTDELETE**
(Lurker)
2003-06-25 08:56 AM
quik lounch

Hello,

Can anybody help me create shortcuts in the quik launch bar and remove some.
I have the makescut programe.

Regards,
Polymed.

Oscar


NTDOCAdministrator
(KiX Master)
2003-06-25 10:33 AM
Re: quik lounch

Oscar,

Please take a look at this post

http://kixtart.org/board/Forum3/HTML/000119.html

and THIS ONE where I helped you before.

http://kixtart.org/cgi-bin/ultimatebb.cgi?ubb=get_topic&f=1&t=002872


Sealeopard
(KiX Master)
2003-06-25 02:44 PM
Re: quik lounch

You also might want to take a look at the FAQ Forum, e.g. Cannot find what you are looking for?

NTDOCAdministrator
(KiX Master)
2003-07-03 10:21 AM
Re: quik lounch

Oscar,

It is very possible that your Windows 95 and NT 4 Desktops might not have a Quick Launch toolbar
The Quick Launch Toolbar is an active desktop feature, which you get from Internet Explorer (starting at IE 4.x).

I have not tried to create any code to check for the existance of Quick Launch or code for Windows 9x/NT
This code should work fine for 2000/XP though. I don't have a Windows 98 or ME at home here to test with.

How to Add or Remove Windows Desktop Update
Microsoft Knowledge Base Article - 165695
http://support.microsoft.com/default.aspx?scid=kb;en-us;165695

Your original code:
code:
$ShellDesk=Readvalue('C:\DOCUMENTS AND SETTINGS\%USERNAME%\application data\microsoft\internet explorer','quick launch')
$OSclass='@inwin'
if $OSclass='1' ; NT
$TargetPath='c:\program files\Microsoft office\office10'
else ; 9X
$TargetPath='%windir%'
endif
$TargetFilespec=$TargetPath+'\winword.exe'
$cmdline='$MakeScut /n "$ShellDesk\Word" /t "$TargetFilespec"'
Shell $cmdline

You can not use READVALUE to read the directory structure. It is used for reading the REGISTRY
$ShellDesk=Readvalue('C:\DOCUMENTS AND SETTINGS\%USERNAME%\application data\microsoft\internet explorer','quick launch')
Try something more like this

The variable $MakeScut assumes you have copied the file locally to the workstations %windir% folder.
You could probably run it from a SHARED folder on a server though.


break on
$MakeScut='%windir%\MakeScut.exe'
$ShellDesk="%APPDATA%\Microsoft\Internet Explorer\Quick Launch"
$TargetPath=Readvalue('HKLM\SOFTWARE\Microsoft\Office\10.0\Word\InstallRoot', 'Path')
$TargetFilespec=$TargetPath+'winword.exe'
$cmdline='$MakeScut /n "$ShellDesk\Word" /t "$TargetFilespec"'
Shell $cmdline
? 'Shortcut installation results: '+@error +' '+@serror


NTDOCAdministrator
(KiX Master)
2003-07-03 10:22 AM
Re: quik lounch

To delete a shortcut, you need to know its name and then simply use the DEL command on that file using the FULL path and name using the correct quotes

NTDOCAdministrator
(KiX Master)
2003-07-07 09:06 AM
Re: quik lounch

Oscar, did this work for you? Do you still need further assistance?

Please post an update when you get a chance.