Wednesday, September 27, 2023
rated 0 times [  4] [ 0]  / answers: 1 / hits: 2280  / 2 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

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, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.

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

Location: Romania
Member since Mon, Jun 6, 2022
1 Year ago