Subject: Re: RE: Unix pathname -> DOS pathname
From: [email-masked] (Geoff Hart)

25 Sep 1998 04:19:14 -0700
Message-ID: <[email-masked]>
References: <[email-masked]>
To: [email-masked]

Can't you just use "cygpath"?  If it's not part
of the standard dist, it's on Sergie's page.

Geoff

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
> pub/win32/develop/gnuwin32/mingw32/porters/Boyd_Earnie
> 
> Good Luck.
> 
> At 06:18 PM 9/21/98 +0200, you wrote:
> >
> >Hi,
> >> > 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
> >better.
> >Does anybody know a better solution?
> >
> >Roger
> >
> >-
> >For help on using this list (especially unsubscribing), send a message to
> >"[email-masked]" with one line of text: "help".
> >
> >
> >
> >
> 
> -
> For help on using this list (especially unsubscribing), send a message to
> "[email-masked]" with one line of text: "help".
> 
> 

-----
See the original message at http://www.egroups.com/list/gnu-win32/?start=7525
--
Free e-mail group hosting at http://www.eGroups.com/
-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".