Hello,

I'm running in trouble by trying to pin some shortcuts to the win7 taskbar.
The following code is part of of a loginscript. After running the script, the shortcut is created in the folder "C:\temp". But it will not appear in the task bar. There is no error reported.
What may be wrong?

Regards
Wolfgang

 Quote:


; Create shortcut

$rc = wshShortcut("C:\temp\wolfgang.lnk","%systemroot%\system32\notepad.exe")
? "Result: " + $rc + "Error: " + @error + " " + @serror

; pin shortcut to taskbar

$RC=PinTo(c:\temp\wolfgang.lnk,"Taskbar")
? "Result: " + $rc + "Error: " + @error + " " + @serror