This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
RE: Unix pathname -> DOS pathname
- To: "David Fox" <dsfox at cogsci dot ucsd dot edu>, "Alessio Milan" <amilan at gic dot it>
- Subject: RE: Unix pathname -> DOS pathname
- From: "Roger René Kommer" <kommer at artefaktur dot com>
- Date: Mon, 21 Sep 1998 18:18:37 +0200
- Cc: <gnu-win32 at cygnus dot com>
- Reply-To: <roger at isp dot uni-kassel dot de>
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
"gnu-win32-request@cygnus.com" with one line of text: "help".