Friday, May 3, 2024
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 2354  / 3 Years ago, mon, august 9, 2021, 9:46:46

For some reason, when I launch Office 2010 using WINE, it creates a lnk file in the Recent directory of my Windows Profile.



I just checked the folder and there were ~2000 LNK files.



How would I delete all LNK files on system startup?


More From » command-line

 Answers
2
find [path] -iname '*.LNK' 


If you run the above and are fine with deleting all of the listed files, then:



find [path] -iname '*.LNK' -print -delete


You can leave out -print if you don't care to see which files are being deleted.



With -iname it's case insensitive.


[#29212] Wednesday, August 11, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
epypian

Total Points: 130
Total Questions: 111
Total Answers: 113

Location: Romania
Member since Mon, Jun 6, 2022
2 Years ago
epypian questions
Sat, Jul 31, 21, 18:35, 3 Years ago
Sun, Oct 24, 21, 23:28, 3 Years ago
Sun, Dec 26, 21, 12:08, 2 Years ago
Tue, May 9, 23, 21:23, 1 Year ago
;