Incode Systems Home Page Incode Systems, Inc.


(Windows 95 or higher command line utility)

LNKFile reads and writes shortcut (*.LNK) files.

LNKFile writes a tab-delimited text file of the properties of the specified LNK file(s). You may use redirection to capture the standard output to a file, like this: LNKFile *.lnk>
You may accumulate the output of multiple executions to the same file like this: LNKFile -h- \MyDir\*.lnk>>
(the -h- option eliminates the header row, the >> appends the file).

If the -c (create) option is given, the FileName is assumed to be a tab file in the same form as the program writes. LNKFile then creates all the shortcut (LNK) files contained in the tab file. The tab file may be created by any program capable of writing tab files, even batch files.

LNKFile - Copyright (C) 2008, Incode Systems, Inc.
version 0.9.1

Usage: [options] FileName
Returns LNK file data as tab delimited text to standard output:

If an empty Target is returned, file is not a link file, is corrupt,
or could not be opened. FileName may contain wildcards (?,*).
-a: Include files with given attribute: h (hidden), s (system).
example: -a:h include hidden files, -a:hs hidden and system
-c Create LNK file(s). FileName is assumed to be a tab file.
-f Force directories
-f- Do not force directories (default)
-h Include header row (default)
-h- Do not include header row
-o Overwrite existing LNK files
-o- Do not overwrite existing LNK files (default)
-p Include Path in output
-r Resolve LNK files (attempt to find missing targets)
-r- Do no resolve LNK files (default)
-s Search subdirectories
-u Replace file names matching USERPROFILE with %USERPROFILE% (default)
(also replaces windir with %windir%)
-u- Do not replace file names matching USERPROFILE