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


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

Re: [PLUG] Converting MS Win shortcuts to hard links


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

Eugene Smiley wrote:

Damn. The things you think of after hitting send... I'm also trying
to 'find' the file in dir b (nested sub-dirs).

> 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) {find /b/ -name ($1) | ln /a/}




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

iQA/AwUBQ2vU+ukD7QKn7f0vEQISFgCfczDM0z/iqYTzs3DSwLkZJYD4qssAmQEg
MdV9In04noWFNvdM7HccFi8f
=Kk0V
-----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