Cygwin, Trucs et astuces : Différence entre versions
(Page créée avec « = Divers fichiers, liens... = == Création de liens symboliques. == Voir https://www.cygwin.com/cygwin-ug-net/using.html#pathnames-symlinks target_dir="//server/path a... ») |
m |
||
| Ligne 10 : | Ligne 10 : | ||
export CYGWIN="nodosfilewarning winsymlinks:lnk" | export CYGWIN="nodosfilewarning winsymlinks:lnk" | ||
ln -s "$target_dir" "$link_name" | ln -s "$target_dir" "$link_name" | ||
| + | |||
| + | [[Category:Cygwin]] | ||
| + | [[Category:Windows]] | ||
| + | [[Category:Tips&Tricks]] | ||
Version actuelle datée du 21 février 2018 à 17:17
Divers fichiers, liens...
Création de liens symboliques.
Voir https://www.cygwin.com/cygwin-ug-net/using.html#pathnames-symlinks
target_dir="//server/path avec des espaces" link_name="//server/path-dest avec des espaces" cmd /c mklink /d "`cygpath -w \"$link_name\"`" "`cygpath -w \"$target_dir\"`"
ou
export CYGWIN="nodosfilewarning winsymlinks:lnk" ln -s "$target_dir" "$link_name"