Is it possible to create a Windows shortcut using PHP?

Posted by Drarok on Stack Overflow See other posts from Stack Overflow or by Drarok
Published on 2009-04-27T10:00:10Z Indexed on 2010/05/24 12:21 UTC
Read the original article Hit count: 255

Filed under:
|

I'm writing a script to tidy up a bunch of media spread across my hard drives, and it works pretty well so far at home (on my Mac) as I use symlinks in a directory to give the impression that everything is organised in one location, whilst the actual data is spread across the 4 drives.

Unfortunately, I have to use Windows at work, and of course there's no symlink support there until PHP 5.3 (and I assume that requires Vista as that's when the command-line tool "mklink" first appeared).

As a workaround, I considered creating a shortcut, but I can't find a way of doing it. Is it possible, or is there a better solution I've not considered?

© Stack Overflow or respective owner

Related posts about php

Related posts about Windows