Thursday, November 18, 2010

Stay linked being widows geek: symlinks

Last time I've been doing a lot of configurations stuff, which in mostly is in Windows environment. And I couldn't imagine handy application deployment without symbolic links. That's why I love linux.

Fortunately Windows 7 allows us to create symlinks in linux style with mklink command:

C:\Foo>mklink java C:/app/openJDK
Creates a symbolic link.

MKLINK [[/D] | [/H] | [/J]] Link Target

        /D      Creates a directory symbolic link.  Default is a file
                symbolic link.
        /H      Creates a hard link instead of a symbolic link.
        /J      Creates a Directory Junction.
        Link    specifies the new symbolic link name.
        Target  specifies the path (relative or absolute) that the new link
                refers to.
Feel like at /home!

You might need to run windows console as and administrator to do this!

0 comments:

Post a Comment