For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > January 2008 > is there a way to read content from lnk on windows?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author is there a way to read content from lnk on windows?
Chen Yue

2008-01-24, 8:06 am

Hi

On Linux, I can use "-l" to judge whether a file is a soft link and use
readlink/Cwd::realpath to get its real path. But on windows (activeperl),
seems both function do not work. Is there a way to do this for me?



Yitzle

2008-01-24, 7:07 pm

Windows does not support the "links" that Unix has.
Windows links have a .lnk extension that you can check for.
Dr.Ruud

2008-01-24, 7:07 pm

yitzle schreef:

> Windows does not support the "links" that Unix has.
> Windows links have a .lnk extension that you can check for.


Both hardlinks and softlinks are supported, specifically with NTFS.
http://search.cpan.org/search?query...ink&mode=module
http://search.cpan.org/search?query=symlink&mode=module

--
Affijn, Ruud

"Gewoon is een tijger."
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com