Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: How to create symlink using Perl?

by bart (Canon)
on Oct 23, 2011 at 16:20 UTC ( [id://933220]=note: print w/replies, xml ) Need Help??


in reply to How to create symlink using Perl?

Windows doesn't (really) support symbolic links. The closest you get to them, is the *.lnk files, also known as shortcuts.

To create a shortcut, you can use the Win32::Shortcut module. It might be coming with ActivePerl, but otherwise yo ucan use PPM to install it.

Replies are listed 'Best First'.
Re^2: How to create symlink using Perl?
by BrowserUk (Patriarch) on Oct 23, 2011 at 18:04 UTC
Re^2: How to create symlink using Perl?
by freonpsandoz (Beadle) on Oct 08, 2016 at 22:28 UTC

    Windows has supported symbolic links on NTFS volumes since Windows 2000. The problem is certain Perl developers who are determined to do to Windows what GOP states did to the ACA. They don't care how many users are hurt in the process, as long as they can put Windows down. That is also why there is no Perl support for Unicode filenames in Windows. See http://crashcourse.housegordon.org/temp-directories.html for an example of a Perl devoper's attitude toward Windows.

        Please test Win32::Symlink. I can't get it to work for files, only for directories. That is exactly the sort of crippled Unicode support under Windows that I see time after time.

        I don't see any general Perl Unicode support in the other few modules you mention. I don't see how to pass a Unicode path to any of the hundreds of Perl modules that haven't been designed for Unicode on Windows. For example, is there any way to pass a Unicode path to MP3::Tag->new?

        Hard links can only be created on the same volume as the target. They can't be used on a volume that the user doesn't have write access to, nor obviously on optical media, so they aren't a general solution.

      See http://crashcourse.housegordon.org/temp-directories.html for an example of a Perl devoper's attitude toward Windows.

      I see neither any "attitude" towards Windows nor any indication that "Assaf Gordon" is or was a Perl developer...?

        Assaf has developed a few CPAN modules. I see an attitude in the phrase "(which we don’t care about, but still…)" but maybe that's just me.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://933220]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-03-28 10:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found