Craig Pearlman on 4 Nov 2005 21:48:04 -0000


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

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


Could try Win32::Shortcut. Will need to run it in Windows, but it should
allow you to pull out the target.

-Craig.

--- Eugene Smiley <eug+plug@esmiley.net> wrote:

> -----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
> 


craig@blackfog.net                   cpearlma@yahoo.com
http://craig.blackfog.net            http://www.openroleplaying.org
----------------------------------------------------------------------
Y! : cpearlma                        AIM: craigpearlman
MSN: cpearlma@yahoo.com              ICQ: 211121815
----------------------------------------------------------------------
"Fantasy is hardly an escape from reality. It's a way of understanding
it."                                                -- Lloyd Alexander


		
__________________________________ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com
___________________________________________________________________________
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