1 .TH "READSHORTCUT" 1 "4 September 2003" "readshortcut 1.00 (cygutils)" "Cygutils"
3 readshortcut \- read data from a windows shortcut (.lnk) file
13 is a command-line tool for reading Windows shortcut files (also known as
14 OLE links). The most practical use is to resolve the target that a shortcut
15 points to. It can be easily run from a script or batch file for non-interactive
21 \fB\-h\fR, \fB\-\-help\fR
22 Output detailed usage information and exit.
26 Output basic usage information and exit.
29 \fB\-v\fR, \fB\-\-version\fR
30 Display the program version and exit.
34 Display the license agreement and exit.
37 \fB\-f\fR, \fB\-\-fields\fR
38 Show field names (Target, Working Directory, Arguments, Show Command, Icon Library, Icon Library Offset, Description).
41 \fB\-u\fR, \fB\-\-unix\fR
42 Use Unix path format for display (default).
45 \fB\-w\fR, \fB\-\-windows\fR
46 Use Windows path format for display.
49 \fB\-t\fR, \fB\-\-target\fR
50 Display shortcut target (default).
53 \fB\-g\fR, \fB\-\-working\fR
54 Display shortcut working directory.
57 \fB\-r\fR, \fB\-\-args\fR
58 Display shortcut arguments
61 \fB\-s\fR, \fB\-\-showcmd\fR
62 Display shortcut "show" command value (Normal, Minimized, or Maximized).
65 \fB\-i\fR, \fB\-\-icon\fR
66 Display icon library location.
69 \fB\-j\fR, \fB\-\-offset\fR
70 Display icon library offset.
73 \fB\-d\fR, \fB\-\-desc\fR
74 Display shortcut description.
77 \fB\-a\fR, \fB\-\-all\fR
78 Display all information.
81 The filename (shortcut) argument may be unix (POSIX) format or Windows (C:\\) format.
83 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.
86 There may be problems if the SHORTCUT argument is longer than 256 characters
89 Copyright (C) 2003 Rob Siklos
91 \fBreadshortcut\fP is free software; you can redistribute it and/or modify
92 it under the terms of the GNU General Public License as published by
93 the Free Software Foundation; either version 2, or (at your option) any
96 \fBreadshortcut\fP is distributed in the hope that it will be useful, but
97 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
98 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
101 You should have received a copy of the GNU General Public License;
102 see the file COPYING. If not, write to the
103 Free Software Foundation,
105 Suite 330, Boston, MA 02111-1307, USA.
108 Rob Siklos, (r o b 3 @ s i k l o s . c a), Toronto, Canada