Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm trying to access some file on my company's local network. The file I was looking for appears to be a Windows shortcut (.lnk) and, of course, I can't follow it from my Ubuntu.

I didn't find any option with smbclient to be able to access what's behind the link. Does anyone have an idea on how to get there?

I don't need Samba to follow the link, I just need to know where it goes, so I can access the file directly.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

You can either

  1. Try opening the file using an editor (like gedit) and see if it helps you see the link's target.

  2. Use lnkforward (Kubuntu Only)

  3. Use Strings
    strings filename.lnk
    Gives out lots of information, including the target location.


Example

[1940][DC++]$ strings Uninstall.lnk 
home
nemo
.wine
drive_c
Program Files
DC++
uninstall.exe
C:\Program Files\DC++\uninstall.exe
share|improve this answer
    
The editor works, it's not very user-friendly but one can read the important informations anyway. I didn't try lnkforward. strings is exactly what I wanted! Thanks a lot! –  Oltarus Oct 18 '11 at 6:58

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.