태그 보관물: microsoft-office-2010

microsoft-office-2010

보급 바로 가기의 대상을 어떻게 찾습니까? [복제]

편집 : 원래 제목은 “MS-Office 바로 가기의 대상을 어떻게 찾습니까?”라는 제목을 사용했습니다. 문제는 MS-Office 바로 가기에만 국한되지 않기 때문에 변경되었습니다.

MSOffice 2010 OneNote가 설치되어 있으며 시작 메뉴의 바로 가기에는 다음과 같은 속성이 있습니다.

여기에 이미지 설명을 입력하십시오

보시다시피 Target정보는 일반적이며 Find Target버튼은 회색으로 표시됩니다.

바로 가기가 가리키는 파일을 어떻게 찾습니까?

편집 : 바로 가기의 대상을 찾고 있었기 때문에 Microsoft 키보드의 “즐겨 찾기”키 중 하나와 함께 사용할 수 있습니다. 그러나 대상의 위치를 ​​찾고자 할 때 실행 파일이 아닌이 바로 가기를 가리 키도록 즐겨 찾기를 설정할 수 있다는 것을 잊었습니다.

그래도 문제가 해결되지만 광고 바로 가기에서 대상 파일의 위치를 ​​찾는 방법을 알고 싶습니다.



답변

“Advertised Shortcuts”인 것 같습니다. 즉 “Finds Calculations blah blah blah”라는 Excel 바로 가기와 같은 프로그램에 대한 정보를 표시 할 수 있도록 “Find Target”기능과 같은 특정 기능을 중단합니다.

인터넷에서 몇 명 이상이 성가신 것으로 보입니다.

http://www.dotnetmonster.com/Uwe/Forum.aspx/vs-setup/1894/Setup-creates-shortcut-with-find-target-grayed

아, 그것은 다음과 같이 요청 된 것 같습니다 : https : //.com/questions/1270779/why-is-the-target-disabled-in-dot-net-shortcuts-after-setup


답변

아래 중 하나를 시도하십시오 ( Tek-Tips 포럼 ).

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 (이 Windows Installer 모듈 설치시 )

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