Eugene Smiley on 4 Nov 2005 21:31:06 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[PLUG] Converting MS Win shortcuts to hard links


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm looking for a one-line or short script to convert a Windows *.lnk
 into a hard link.

- - dir a contains the shortcuts
- - dir b contains the file being pointed to.
- - the link name is the filename + .lnk.
- - trying to do something like:

foreach (*).lnk (dir a) {ln /b/($1) /a/}

I'm not having much luck in perl or from the shell. Anyone point me
in the right direction?


-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0.3

iQA/AwUBQ2vSp+kD7QKn7f0vEQLfYwCePBC+DqWDxRTNYfcivaCq5ekYkwAAoOyO
5srw5ethSObF+l12omeRpxMw
=FUkH
-----END PGP SIGNATURE-----
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug