Link files
or files with .lnk extension is also called shortcut files in Windows and is
quite handy when accessing files, documents, or application programs when it is
placed on a location where you needed it most. So you don’t have to browse all
the way to the location of the file, instead just click the shortcut and the
file or program will be opened.
As time goes
by, shortcut files or .lnk files can easily be forgotten or sometimes it will
just clutter on the desktop or in any sub folders in the computer.
How to list
or get all shortcut files in Windows? Or aka how to get all .lnk files on the
system?
PowerShell can
easily list all the lnk or shortcut files, and determine when was the last time
the shortcut link was used or modified.
Here’s the
code using PowerShell on how to check all the ‘.lnk’ files on the system, Windows
shortcuts has an extension of “.lnk” and its actual properties points to the
location or path of the file.
PowerShell
one-liner code to get all lnk files.
Get-CimInstance Win32_ShortcutFile | select Name, FileName, CreationDate, LastAccessed, Drive, Path, FileType
Sample
output of the above command:
Name : W:\Android\the_workspace\admob\backup\2\MobileKit\.gradle\2.8
- Shortcut.lnk
FileName : 2.8 - shortcut
CreationDate
: 16/11/2019 8:30:38 PM
LastAccessed
: 16/1/2020 5:30:38 PM
Drive : w:
Path : \android\ the_workspace\admob\backup\2\MobileKit\.gradle\
FileType : Shortcut
Above
output, shows the date and time the link or shortcut was created and it also
shows when was the last time the link was used.
Above is
just a sample output, there could a more shortcut files on your system that the
PowersShell command will find.
================================
Free Android Apps:
Click links below to find out more:
Excel Keyboard guide:
Heaven's Dew Fall Prayer app for Android :
Catholic Rosary Guide for Android:
Comments
Post a Comment