Windows : Як зробити сімлінк для файла або каталогу у windows 7

Дістало переходити з каталогу до каталогу, та вирішив всеж таки знайти як це робиться в windows 7. В FreeBSD та інших - це для мене вже зрозуміла та відома команда - link.


LN(1)                   FreeBSD General Commands Manual                  LN(1)


NAME
     ln, link — link files

SYNOPSIS
     ln [-L | -P | -s [-F]] [-f | -iw] [-hnv] source_file [target_file]
     ln [-L | -P | -s [-F]] [-f | -iw] [-hnv] source_file ... target_dir
     link source_file target_file

DESCRIPTION
     The ln utility creates a new directory entry (linked file) for the file
     name specified by target_file.  The target_file will be created with the
     same file modes as the source_file.  It is useful for maintaining multi‐
     ple copies of a file in many places at once without using up storage for
     the “copies”; instead, a link “points” to the original copy.  There are
     two types of links; hard links and symbolic links.  How a link “points”
     to a file is one of the differences between a hard and symbolic link.


Але всеж як це зробити на лептопі під семіркою ???

Також доволі просто:


D:\vh\>mklink
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.


Щоб зробити потрібний мені сімлінк з каталогу
D:\vh\zulu.localhost\www\imgs\

до
D:\vh\tango.localhost\www\imgs

мені залишилось тільки виконати наступну команду:


mklink /D D:\vh\tango.localhost\www\imgs D:\vh\zulu.localhost\www\imgs\


От і все.

Вы только посетили наш сайт, КОММЕНТИРОВАНИЕ будет доступно через несколько минут.
возможно у Вас отключен javascript, если включен - просто обновите страницу