Table of Contents
readshortcut - read data from a windows shortcut (.lnk) file
readshortcut
[OPTION]* SHORTCUT
readshortcut is a command-line tool for
reading Windows shortcut files (also known as OLE links). The most practical
use is to resolve the target that a shortcut points to. It can be easily
run from a script or batch file for non-interactive use.
- -h, --help
- Output detailed usage information and exit.
- --usage
- Output basic usage information
and exit.
- -v, --version
- Display the program version and exit.
- --license
- Display
the license agreement and exit.
- -f, --fields
- Show field names (Target, Working
Directory, Arguments, Show Command, Icon Library, Icon Library Offset,
Description).
- -u, --unix
- Use Unix path format for display (default).
- -w, --windows
- Use Windows path format for display.
- -t, --target
- Display shortcut target
(default).
- -g, --working
- Display shortcut working directory.
- -r, --args
- Display
shortcut arguments
- -s, --showcmd
- Display shortcut "show" command value (Normal,
Minimized, or Maximized).
- -i, --icon
- Display icon library location.
- -j, --offset
- Display icon library offset.
- -d, --desc
- Display shortcut description.
- -a, --all
- Display all information.
The filename (shortcut) argument may be unix
(POSIX) format or Windows (C:\) format.
Information extracted from the shortcut
is always displayed in the following order: Target, Working Directory,
Arguments, Show Command, Icon Library, Icon Library Offset, Description.
Each element appears on a separate line.
There may be problems if
the SHORTCUT argument is longer than 256 characters
Copyright
(C) 2003 Rob Siklos
readshortcut is free software; you can redistribute
it and/or modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2, or (at your
option) any later version.
readshortcut is distributed in the hope that
it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
Public License for more details.
You should have received a copy of the
GNU General Public License; see the file COPYING. If not, write to the
Free Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307,
USA.
Rob Siklos, (r o b 3 @ s i k l o s . c a), Toronto, Canada
mkshortcut(1)
readlink(1)
Table of Contents