Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I'm creating a script that needs to operate under both 'real' OSen and (for reasons too painful to go into) Win32. One of the requirements is that it create symlinks to the latest logfiles it produces; e.g.
/var/log/silliness/ latest/ results errors $year/$month/$day/ results.$hour:$min:$sec errors.$hour:$min:$sec
Is there a module somewhere -- or (ideally) a simple code snippet -- to create a "shortcut" file like C:/var/log/silliness/latest/results.LNK (or C:\\..., whatever) so that Win32 users can use Explorer to open the latest output files just like the Unix users can from gmc (or the shell, or...)?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How do I create a Win32 'shortcut' (.LNK) file?
by tye (Sage) on Jan 24, 2001 at 21:43 UTC | |
|
Here's the code
by Foggy Bottoms (Monk) on Jun 12, 2003 at 11:03 UTC | |
by Foggy Bottoms (Monk) on Jun 12, 2003 at 13:42 UTC | |
by PhilHibbs (Hermit) on Aug 13, 2003 at 08:41 UTC | |
by Foggy Bottoms (Monk) on Aug 13, 2003 at 12:23 UTC |