Unix pathname -> DOS pathname
Wed Sep 23 23:42:00 GMT 1998
You will need to write some code to get the mount points from the registry
in order to perform the magic. Can you code?
There was a post sometime ago on this list that offered a DOS path to Posix
path conversion, but this is not what you want. Search the archives for
"posixpath" or "Command here" if this interests you.
Alternately, get yourself a copy of "pwd" from the Mingw32 shell utils
ported by Earnie Boyd. This stuff can be found at ftp.franken.de in
At 06:18 PM 9/21/98 +0200, you wrote:
>> > How can I convert a Unix pathname to a DOS pathname? Example:
>> > from: /usr/local/myfile
>> > to: D:\local\myfile
>> > (in the example /usr is mounted on D:)
>> Hey, you just did! (Sorry, couldn't resist.)
>Actually it is more interessant, how to do it in shell scripts.
>One possibility is to launch
>echo `cmd.exe /c cd`
>to get the cwd in DOS/NT syntax, but the performance could be
>Does anybody know a better solution?
>For help on using this list (especially unsubscribing), send a message to
>"firstname.lastname@example.org" with one line of text: "help".
For help on using this list (especially unsubscribing), send a message to
"email@example.com" with one line of text: "help".
More information about the Cygwin