Create Symbolic Links, Hard Links and Directory Junctions in Vista with MKLINK Crear enlaces simbólicos, enlaces duros y Salidas Directorio de Vista con MKLINK

For Unix-like or Linux system users, symbolic link is a common feature in use almost daily. Para Unix o Linux usuarios de la red, enlace simbólico es una característica común en el uso casi a diario. Symbolic link (aka soft link) or symlink as it often shortened to, is a special type of file or file-system object that serves as a reference or points to another file, UNC or directory, known as target. Enlace simbólico (también conocido como enlace blando) o enlace simbólico ya que a menudo abreviado, es un tipo especial de archivo o sistema de ficheros objeto que sirve como referencia o apunta a otro archivo, directorio o Mando de las Naciones Unidas, conocida como objetivo. In Windows Vista, symlinks feature has been added to NTFS filesystem and can be created by using MKLINK command. En Windows Vista, enlaces simbólicos característica se ha agregado a sistema de archivos NTFS y se pueden crear mediante el uso de MKLINK comando. In previous Windows operating system, the closer thing to symbolic links is NTFS junction point, or worse, Windows shell shortcut (.lnk) file. En el anterior sistema operativo Windows, la cosa más cercana a los enlaces simbólicos es punto de cruce NTFS, o lo que es peor, atajo de shell de Windows (. Lnk) archivo.

Symlink in Vista, unlike .lnk shortcut in desktop or Windows Explorer, allow user to access files within the symbolic link created itself via explorer, the console and etc. And symbolic link also differ from NTFS junction point which can only link to folders and volumes, in which symlinks can point to a file, a UNC, a folder or a volume, as well as able to span file systems. Enlace simbólico en Vista, a diferencia de. Lnk acceso directo en escritorio o el Explorador de Windows, permiten al usuario acceder a archivos en el enlace simbólico creado a través de explorador, la consola y etc Y enlace simbólico también difieren de NTFS cruce punto que sólo puede vincular a las carpetas y volúmenes , En el que los enlaces simbólicos pueden apuntar a un archivo, un Mando de las Naciones Unidas, una carpeta o volumen, así como capaz de abarcar los sistemas de archivos.

Symbolic link is useful when you have a lot of folders and files are scattered all over the directory tree, and you need to manage them from a single location. Enlace simbólico es útil cuando usted tiene un montón de carpetas y los archivos están dispersos por todo el árbol de directorios, y lo que usted necesita manejar desde un solo lugar. Another scenario is that you have a deep nested file that you want to access quickly instead of traverse through one branch by one branch. Otro escenario es que tiene un profundo anidados archivo que desea el acceso rápidamente en lugar de recorrer a través de una sucursal de una rama. And furthermore, for programmer, symlink provides a static file path that can be point to a ever changing object without affecting the functionality of the program. Y además, de programador, enlace simbólico proporciona una ruta de archivo que puede ser punto a un objeto siempre cambiante, sin afectar la funcionalidad del programa. In all these situation, symbolic links can be created at a convenient location which point to the ‘real’ objects. En todas estas situación, los enlaces simbólicos se pueden crear en una ubicación que apuntan a la "real" de objetos.

As mentioned, to create a symbolic link, use MKLINK command line tool. Como se ha mencionado, para crear un enlace simbólico, MKLINK uso de herramientas de línea de comandos. MKLINK can be used to create a hard link or directory junction too. MKLINK puede ser usado para crear un enlace duro cruce o directorio. Hard link is essentially giving another name or label to the objects, while NTFS directory junction point is used to redirect the whole folder to another folder as if it’s the original folder itself. Enlace duro es esencialmente dar otro nombre o etiqueta a los objetos, mientras que NTFS directorio cruce punto se utiliza para reorientar toda la carpeta a otra carpeta, como si es la carpeta original. Junction point is used extensively in Vista to provide support for old directory structures for user profiles (ie Documents and Settings) to point to the new user folders located inside Users directory. Junction punto se utiliza ampliamente en Vista para prestar apoyo a las viejas estructuras de directorio para los perfiles de usuario (es decir, Documents and Settings), al punto que el nuevo usuario ubicados dentro de las carpetas de usuarios de directorios.

Syntax and Options of MKLINK Sintaxis y opciones de MKLINK

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

/D - Creates a directory symbolic link. / D - Crea un directorio enlace simbólico. Default to file symbolic link. El valor predeterminado para presentar enlace simbólico.
/H - Creates a hard link instead of a symbolic link. / H - Crea un enlace duro en lugar de un enlace simbólico.
/J - Creates a Directory Junction. / J - Crea un directorio Junction.
Link - Specifies the new symbolic link name. Enlace - Especifica el nuevo enlace simbólico nombre.
Target - Specifies the path (relative or absolute) that the new link refers to. Meta - Especifica la ruta (relativa o absoluta) de que el nuevo enlace se refiere a.

Examples and Usages of MKLINK Ejemplos y usos de MKLINK

Note: Only Administrators can use MKLINK to create symbolic links unless override by using secpol.msc, so you need to run Command Prompt with elevated privileges, or else you will get “You do not have sufficient privilege to perform this operation.” error. Nota: Sólo los administradores pueden utilizar MKLINK para crear enlaces simbólicos a menos que anular mediante el uso de secpol.msc, por lo que necesita para ejecutar comandos con privilegios elevados, o bien se llega "Usted no tiene suficientes privilegios para realizar esta operación." Error.

To create symbolic link called foo to reference to c:\Windows\System32\notepad.exe: Para crear enlace simbólico llamado a foo referencia a c: \ Windows \ System32 \ notepad.exe:

C:\test>mklink foo c:\Windows\System32\notepad.exe C: \ test> mklink foo c: \ Windows \ System32 \ notepad.exe

You will see the following result: Verá el siguiente resultado:

symbolic link created for foo <<===>> c:\Windows\System32\notepad.exe enlace simbólico creado para foo <<===>> c: \ Windows \ System32 \ notepad.exe

If you type dir in commnd prompt, you will see the following listing: Si tecleamos dir en commnd rápida, verá la siguiente lista:

Volume in drive C has no label. Tomo en la unidad C no tiene etiqueta.
Volume Serial Number is 2211-7428 Tomo número de serie se 2211-7428

Directory of C:\test Directorio de C: \ test

04/14/2006 11:24 AM <DIR> . 04/14/2006 11:24 AM <DIR>.
04/14/2006 11:24 AM <DIR> .. 04/14/2006 11:24 AM <DIR> ..
04/14/2006 11:24 AM <SYMLINK> foo [c:\Windows\system32\notepad.exe] 04/14/2006 11:24 AM <SYMLINK> foo [c: \ Windows \ system32 \ notepad.exe]
1 File(s) 0 bytes 1 Fichero (s) 0 bytes
2 Dir(s) 69,238,722,560 bytes free 2 Dir (s) 69.238.722.560 bytes libres

To create symbolic link to a folder, simply use /D switch: Para crear enlace simbólico a una carpeta, sólo tiene que utilizar / D:

C:\test>mklink /d bar c:\windows C: \ test> mklink / d bar c: \ windows
symbolic link created for bar <<===>> c:\windows enlace simbólico creado por la barra de <<===>> c: \ windows

Results of dir command: Resultados de comando Dir:

Volume in drive C has no label. Tomo en la unidad C no tiene etiqueta.
Volume Serial Number is 2211-7428 Tomo número de serie se 2211-7428

Directory of C:\test Directorio de C: \ test

04/14/2006 11:24 AM <DIR> . 04/14/2006 11:24 AM <DIR>.
04/14/2006 11:24 AM <DIR> .. 04/14/2006 11:24 AM <DIR> ..
04/14/2006 11:24 AM <SYMLINKD> bar [c:\windows] 04/14/2006 11:24 AM <SYMLINKD> bar [c: \ windows]
04/14/2006 11:24 AM <SYMLINK> foo [c:\Windows\system32\notepad.exe] 04/14/2006 11:24 AM <SYMLINK> foo [c: \ Windows \ system32 \ notepad.exe]
1 File(s) 0 bytes 1 Fichero (s) 0 bytes
3 Dir(s) 69,238,722,560 bytes free 3 Dir (s) 69.238.722.560 bytes libres

MKLINK cannot use to delete symbolic link. MKLINK no puede utilizar para eliminar enlace simbólico. To remove a symbolic link, simply delete them as if you’re removing a normal file. Para eliminar un enlace simbólico, simplemente borrarlos como si usted está eliminando un archivo normal. For example, to delete the foo symbolic link created above, enter the following command: Por ejemplo, para eliminar el enlace simbólico foo creado anteriormente, introduzca el siguiente comando:

C:\test>del foo C: \ test> del foo

To remove the bar symbolic link to a folder created above, use the following command: Para eliminar la barra de enlace simbólico a una carpeta creada anteriormente, utilice el siguiente comando:

C:\test>rd bar C: \ test> er bar

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. IMPORTANTE: Se trata de una máquina que traduzca la página se proporciona "tal cual" sin garantía. Machine translation may be difficult to understand. La traducción automática puede resultar difícil de entender. Please refer to Por favor, consulte original English article artículo original Inglés whenever possible. siempre que sea posible.

Share and contribute or get technical support and help at Compartir y contribuir o recibir apoyo técnico y ayudar a My Digital Life Forums Mi vida digital Foros .



4 Responses to “Create Symbolic Links, Hard Links and Directory Junctions in Vista with MKLINK” 4 Respuestas a "Crear enlaces simbólicos, enlaces duros y Salidas Directorio de Vista con MKLINK"

  1. The CTRAN weblog » Blog Archive » Create Symbolic Links, Hard Links and Directory Junctions in Vista with MKLINK El CTRAN weblog »Blog Archive» Crear enlaces simbólicos, enlaces duros y Salidas Directorio de Vista con MKLINK
    June 2nd, 2007 04:22 Junio 2, 2007 04:22
    1

    [...] Create Symbolic Links, Hard Links and Directory Junctions in Vista with MKLINK » My Digital Life: [...] [...] Crear enlaces simbólicos, enlaces duros y Salidas Directorio de Vista con MKLINK »Mi vida digital: [...]

  2. david David
    June 23rd, 2008 09:36 23 de junio de 2008 09:36
    2

    I cannot figure out how to go to or switch to a symbolic link after it is created. No puedo imaginar cómo van a cambiar o para un enlace simbólico después de haber sido creada. How do you do it? ¿Cómo hacerlo? I can’t find instructions for this mentioned anywhere. No puedo encontrar las instrucciones para este mencionado en ninguna parte.

  3. Ed
    June 25th, 2008 06:32 25 de Junio, 2008 06:32
    3

    Thanks for the post, but I don’t see the point of creating a symlink to a file. Gracias por el puesto, pero no veo el punto de crear un enlace a un archivo. In your example, you created a symlink called “foo” pointing to notepad.exe, but what can you do to the file “foo”? En su ejemplo, que ha creado un enlace simbólico llamado "foo" que apunta a notepad.exe, pero ¿qué puedes hacer para el archivo "foo"? It’s not executable, even after I rename it to foo.exe. No es ejecutable, incluso después de cambiar el nombre a foo.exe.

    Thanks. Gracias.

  4. ludo Ludo
    July 22nd, 2008 17:39 22 de Julio, 2008 17:39
    4

    you can’t execute symlinks, for that you need to make a shortcut the normal way. no se puede ejecutar enlaces simbólicos, para que usted necesita para hacer un atajo de la forma habitual. A symlink is more usefull for ppl to read a certain file wich is in a folder they normaly can’t go to. Un enlace simbólico es más útil para ppl para leer un determinado archivo que se encuentra en una carpeta que normalmente no puede ir. Or the same file is needed on 2 different folder locations, but you dont want to edit 2 seperate files all the time. O el mismo archivo se necesita el 2 de carpeta diferente lugares, pero usted no desea editar 2 archivos separados todo el tiempo.

Leave a Reply Deja Responder

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> Puede usar estos tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q Cite=""> <strike> <strong>

Subscribe without commenting Suscribirse sin comentar


Custom Search

New Articles Nuevos Artículos

Incoming Search Terms for the Article Próximos Términos de búsqueda para el artículo

mklink mklink - -- vista hard link Vista enlace duro - -- mklink vista mklink Vista - -- mklink download mklink descargar - -- vista hard links Vista enlaces duros - -- vista create junction Vista crear Junction - -- vista Hardlink Vista Hardlink - -- vista directory link Vista directorio enlace - -- download mklink descargar mklink - -- remove symbolic link eliminar enlace simbólico - -- vista create link Vista crear enlace - -- vista junctions Vista cruces - -- mklink remove mklink eliminar - -- vista mklink Vista mklink - -- hard link vista enlace duro Vista - -- remove symbolic link vista eliminar enlace simbólico Vista - -- mklink junction mklink Junction - -- create link vista crear vínculo Vista - -- hard links vista enlaces duros Vista - -- create junction vista crear Junction Vista - -- mklink hard link mklink enlace duro - -- MKLINK MKLINK - -- vista create hard link Vista crear enlace duro - -- remove mklink eliminar mklink - -- delete mklink eliminar mklink - -- create hard link vista crear enlace duro Vista - -- all todo - -- mklink syntax mklink sintaxis - -- windows vista hard link Windows Vista enlace duro - -- windows vista hard links Windows Vista enlaces duros - -- vista make link Vista hacer enlace - -- create symbolic link vista crear enlace simbólico Vista - -- mklink you do not have sufficient privilege to perform this operation mklink si no tiene suficientes privilegios para realizar esta operación - -- vista remove symbolic link Vista eliminar enlace simbólico - -- how to use mklink cómo usar mklink - -- mklink windows xp mklink Windows XP - -- mklink delete mklink borrar - -- link folder vista enlace carpeta Vista - -- mklink privileges mklink privilegios - -- vista directory links Vista directorio de enlaces - -- create ntfs junction vista crear NTFS Junction Vista - -- vista mklink privileges Vista mklink privilegios - -- hard link directory enlace duro directorio - -- hard link windows vista enlace duro Windows Vista - -- vista junction create Vista crear Junction - -- vista delete symbolic link Vista suprimir el enlace simbólico - -- hardlinks vista hardlinks Vista - -- junctions in vista los cruces de Vista - -- windows vista mklink Windows Vista mklink - -- create symbolic link in windows crear enlace simbólico en Windows - --