Cygwin convert windows path to linux path: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
Line 19: Line 19:
remote directory (network drive) e.g. {{kbd | key=<nowiki>\\remote\test path\</nowiki>}}
remote directory (network drive) e.g. {{kbd | key=<nowiki>\\remote\test path\</nowiki>}}
<pre>
<pre>
//method1
$ cygpath -u '\\remote\test path\'
//remote/test path/
//method2
enclose the whole path with single quote symbol
enclose the whole path with single quote symbol
$ path = '\\remote\path\'
$ path = '\\remote\path\'
Line 62: Line 67:


== convert linux path to windows path ==
== convert linux path to windows path ==
local directory
<pre>
<pre>
$ cygpath -w '/cygdrive/c/Program Files/'
$ cygpath -w '/cygdrive/c/Program Files/'
Line 67: Line 73:
</pre>
</pre>


remote directory (network drive)
<pre>
$ cygpath -w '//remote/test path/'
\\remote\test path\
</pre>


== reference ==
== reference ==

Navigation menu