雖然大多數人永遠不需要開啟.lnk檔案來編輯它,但在少數情況下可能需要或需要它。但是如何開啟和編輯快捷方式檔案呢?今天的超級使用者問答有答案。
今天的問答環節是由SuperUser提供的,SuperUser是Stack Exchange的一個分支,是一個由社群驅動的問答網站分組。
超級使用者讀者Jez想知道如何開啟.lnk檔案以檢視“內容”並在需要時編輯它們:
A .lnk file in Windows is an actual file intended to be a shortcut to another file, but I really do want to view the contents of the .lnk file itself. However, I am finding it literally impossible to do so.
No matter what I try, my applicati*** are opening the contents of the file it points to (drag and drop into a text or hex editor, File –> Open from a text or hex editor, etc.).
Is there any way I can get a program to actually open the .lnk file itself instead of the file it points to?
有沒有辦法讓Jez開啟.lnk檔案並編輯它們?
超級使用者貢獻者和31415、朱利安·奈特和維納亞克為我們提供了答案。首先,31415:
Using HxD Hex Editor, you can open .lnk files just fine, as long as you do not drag and drop them.
As a workaround, open a command prompt and rename the .lnk file with a different, non-existent extension such as .lne:
You will then be able to treat the shortcut just like a regular file. When you are done, make sure to rename the file with the original .lnk extension to restore its usual functionality.
接下來是朱利安·奈特的回答:
The whole point of a .lnk file is for Windows to treat it as a link to another file, so it should be hard to edit! Perhaps it would help if you described why you want to edit it. You can change the settings of a .lnk file by right-clicking and choosing Properties.
If you really want to edit it, you need a special tool. There are a few of these around including:
I have not tried any of these, just Googled them.
You can also edit the properties via PowerShell (from this previous answer on Stack Overflow):
Since this uses the Shell COM object, you could also do this with WSH or even VBA in Office!
最後,維納亞克的回答是:
I have tried this and it works for me on Windows 8.1:
Opening .lnk files in Notepad:
Opening .lnk files in HxD Hex Editor:
Opening .lnk files using the command prompt:
Opening .lnk files in just about any program:
有什麼要補充的解釋嗎?在評論中發出聲音。想從其他精通技術的Stack Exchange使用者那裡瞭解更多答案嗎?在這裡檢視完整的討論主題。
adobeacrobat是一個相當強大的PDF瀏覽器,具有強大的編輯功能。但是,如果你不能訪問付費版本的程式,有一個簡單的線上解決辦法來編輯PDF。 ...
... 因此,在本文中,我們將向您展示如何在Photoshop中新增和編輯文字。這比你想象的要容易。 ...
... 每次我想在開啟一個檔案之前預覽它,我都會導航到它在Finder中的位置,以使用快速查詢功能。我從來沒有想過,我可以預覽檔案,因為我開啟他們,即從開啟對話方塊。事後看來,...
如果你在旅途中,使用別人的電腦,或者你的電腦上沒有Photoshop或GIMP,那麼PSD檔案就沒什麼用了。幸運的是,一些線上工具使編輯PSD檔案成為可能,而不需要手頭上的常用工具。 ...
... 在Windows中,您需要將AI副檔名更改為PDF。突出顯示檔案並按鍵盤上的F2鍵。在檔名末尾新增PDF,並在出現提示時確認更改。現在,雙擊該檔案,它將在預設的PDF檢視器中開啟...
...eprimiere的許可權,或者覺得這個程式太過龐大,你可以在Windows、Mac和Linux上使用免費軟體將較長的影片分割成較短的片段。當然,使用adobepremiere元素有很多理由,它是adobepremiere的縮小版。 ...
...hift+S(如果您使用的是Mac)或Ctrl+Shift+S(如果您使用的是Windows PC)開始錄音。 ...
...記下資訊。然而,與其他許多蘋果應用程式一樣,它沒有Windows版本。因此,儘管在Windows電腦**問Apple Notes看起來像是一件家務事,但這很簡單。 ...