Sunday, May 12, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 1291  / 2 Years ago, thu, october 13, 2022, 3:21:29

My problem



UbuntuOne does not synchronize Windows link files (.lnk). Now, I do not expect UbuntuOne to synchronize the actual links by changing an .lnk file to a linux symlink, nor do I do expect UbuntuOne to copy the actual target file in the Library (as though it were a hard link). But I would love to have UbuntuOne copy the .lnk files themselves.



The use case



I have an identical directory structure on my windows computer (@work) and my 12.10 (@home). At work I have a folder called Library which contains all my pdfs. When I am working on something I put a link to that file in the current working directory. That's nice because all my files are easy to reach and I know which files I have referred to.



That would allow me to see what files I quoted. On the long run it would allow me to use a script to convert the .lnk files to symbolic links on 12.10.



As a part of this question: do you have a) a proposal of a batch script to convert windows .lnk files to text files and b) a script that converts that text file to a symlink on 12.10. I could run the first script on W$ and the second on 12.10. Or do you have a better solution?



The background



I have read the following questions (and their answers) and I think this is not a duplicate, because I don't want the target file (the file the link refers to) to be copied, but simply the .lnk file itself.




More From » 12.10

 Answers
4

We do not currently have any proposals to convert lnk files to text files, but you're looking in the right direction. What you could probably do is write a script that watches your U1 directory and calls FindFirstFileNameW on each file (or configured files) to find out what files have links and what the links are called. Then write that to a file which is synchronized by U1, then on your other clients (your linux machine(s)), open that file when it's changed and maintain your file->link setup.


[#33027] Friday, October 14, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
alliulet

Total Points: 46
Total Questions: 109
Total Answers: 97

Location: Svalbard and Jan Mayen
Member since Sat, Oct 10, 2020
4 Years ago
;