So zeigen Sie die angekündigte Verknüpfung an

2525
flamey

Ich habe gerade über angekündigte Verknüpfungen in Windows erfahren. Ich kann jedoch keine Informationen darüber finden, wie ich sehen kann, worauf es hinweist und was mit Doppelklick ausgeführt wird. Gibt es eine Möglichkeit, es zu ändern oder das Symbol zu ändern?

5

2 Antworten auf die Frage

2
Hugh Allen
Ich bin am Ende auf programmatische Weise (per Perl und Win32 API) gelandet, aber immer noch überrascht, dass es keine integrierte Windows-Methode gibt, um sogar das Ziel anzuzeigen. flamey vor 13 Jahren 0
1
user66001

Versuchen Sie eines der folgenden (aus Tek-Tips-Foren ):

VbScript

' GetRealTarget.vbs ' This version needs to be run under wscript engine rather than cscript  ' Pass the full path to an MSI "Advertised Shortcut" lnk file (including the extension) as a parameter ' e.g. assuming that we have a default install of Office 2003 for All Users: ' GetRealTarget "C:\Documents and Settings\All Users\Start Menu\Programs\Microsoft Office\Microsoft Office Excel 2003.lnk"  ' Displays fully resolved target for the MSI shortcut  Option Explicit Dim MSITarget  On Error Resume Next ' just some simple error handling for purposes of this example If wscript.arguments.count = 1 Then ' did actually pass an MSI advertised shortcut? Or, at least, a parameter that could be such a thing? With CreateObject("WindowsInstaller.Installer") Set MSITarget = .ShortcutTarget(wscript.arguments(0)) If Err = 0 then MsgBox .ComponentPath(MSITarget.StringData(1), MSITarget.StringData(3)) Else  MsgBox wscript.arguments(0) & vbcrlf & "is not a legitimate MSI shortcut file or could not be found" End If End With End If On Error Goto 0 

PowerShell (bei der Installation dieses Windows Installer-Moduls )

get-msiproductinfo | where { $_.ProductState -match "Installed" } | fl AdvertisedProductName, InstallLocation