Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows how to create directory symlink

im trying to create a symlink to directory Windows 8.1

using git-bash command windows run as administrator

having the folder structure like this:

-magento plugin
-magento

where my plugin is a git repository i want to symlink it to magento as mentioned here: http://inchoo.net/ecommerce/magento/how-to-setup-git-for-magento-extension-development/

so i run command to create symlink

$ ln -s D:/wamp/www/plugin-magento/app/design/adminhtml/default/default/template/company/name/ d:/wamp/www/magento/app/design/adminhtml/default/default/template/
company/name

where: D:/wamp/www/plugin-magento/app/design/adminhtml/default/default/template/company/name/ has subdirectories and exist

and d:/wamp/www/magento/app/design/adminhtml/default/default/template/ exist

i get error: ln: creating symbolic link d:/wamp/www/magento/app/design/adminhtml/default/def ault/template/company/name' toD:/wamp/www/plugin-magento/app/design/adminhtml/def ault/default/template/company/name/': No such file or directory

like image 335
vardius Avatar asked Jun 16 '14 09:06

vardius


People also ask

Can you make a symbolic link to a directory?

There is nothing hard in creating Symbolic links in Linux – you just need to follow one simple step. The ln command in Linux creates links between source files and directories. -s – the command for Symbolic Links. [Symbolic filename] – name of the symbolic link.

How do I create a symbolic folder?

Ln Command to Create Symbolic Links By default, the ln command creates a hard link. Use the -s option to create a soft (symbolic) link. The -f option will force the command to overwrite a file that already exists. Source is the file or directory being linked to.


1 Answers

Under Windows you create a symlink with mklink /d. Attention under Windows its target and then source.

mklink /d "D:\wamp\www\magento\app\design\adminhtml\default\default\template\
company\name\" "D:\wamp\www\plugin-magento\app\design\adminhtml\default\default\template\company\name\"

http://www.sevenforums.com/tutorials/278262-mklink-create-use-links-windows.html

like image 172
René Höhle Avatar answered Sep 18 '22 01:09

René Höhle