delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/09/22/05:59:25

From: kommer AT artefaktur DOT com (=?iso-8859-1?Q?Roger_Ren=E9_Kommer?=)
Subject: RE: Unix pathname -> DOS pathname
22 Sep 1998 05:59:25 -0700 :
Message-ID: <000001bde57b$7d7faf60$fa01a8c0.cygnus.gnu-win32@KOMUN.artefaktur.de>
References: <u84su5klpe DOT fsf AT pipeline DOT ucsd DOT edu>
Reply-To: <roger AT isp DOT uni-kassel DOT de>
Mime-Version: 1.0
To: "David Fox" <dsfox AT cogsci DOT ucsd DOT edu>, "Alessio Milan" <amilan AT gic DOT it>
Cc: <gnu-win32 AT cygnus DOT com>

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 AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019