Search code examples
linuxbashshellbatch-filecygwin

How to change cygdrive to windows directory structure


How can I change a cygdrive to a windows directory structure. For example : I have :

/cygdrive/c/fighter/library/binaries

how can I change this to

c:/fighter/library/binaries

either using a batch script or using a bash (.sh) script

I would be grateful for any sort of help.


Solution

  • Try cygpath -w, e.g.

    $ cygpath -w /cygdrive/c/Users
    C:\Users