My Technical Notes

Monday, 11 November 2013

Using cygpath Utility

Translates a cygwin path into a windows one:

hasst001@WST04863 ~
$ /cygdrive/c/Program\ Files/Notepad++/notepad++.exe $(cygpath -aw /cygdrive/c/Users/hasst001/Documents/indexfile.txt)
Or vice versa:

hasst001@WST04863 ~
$ cygpath "c:\Program Files"
/cygdrive/c/Program Files

No comments: