Windows how to create directory symlink
Asked Answered
K

1

7

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

Kikelia answered 16/6, 2014 at 9:18 Comment(0)
D
11

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

Dmitri answered 16/6, 2014 at 9:24 Comment(6)
it returns Invalid switch - "wamp".Kikelia
and when i wrap paths in "" quates then it returns The system can not find the path specified.Kikelia
Put it in " or use \ the option /d is for a directory. If you wand to link a file then remove the /dDraconic
when i use /d its still returns No such file or directoryKikelia
Then check your path ;)Draconic
when i type the path in exploreer it works and when i want to create symlink it doesntKikelia

© 2022 - 2024 — McMap. All rights reserved.