delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/09/23/03:22:17

From: earnie_boyd AT yahoo DOT com (Earnie Boyd)
Subject: RE: Unix pathname -> DOS pathname
23 Sep 1998 03:22:17 -0700 :
Message-ID: <19980922170340.28988.rocketmail.cygnus.gnu-win32@send1b.yahoomail.com>
Reply-To: earnie_boyd AT yahoo DOT com
Mime-Version: 1.0
To: David Fox <dsfox AT cogsci DOT ucsd DOT edu>, Alessio Milan <amilan AT gic DOT it>,
roger AT isp DOT uni-kassel DOT de
Cc: gnu-win32 AT cygnus DOT com

---=?iso-8859-1?Q?Roger_Ren=E9_Kommer?= <kommer AT artefaktur DOT com> 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?
> 

Take a look at the faq.html#SEC15

This is a list of misc functions of which include what you need.
==
-                \\||//
-----------o0O0--Earnie--0O0o------------
--        earnie_boyd AT yahoo DOT com        --
-- http://freeyellow.com/members5/gw32 --
--------------ooo0O--O0ooo---------------

PS: Newbie's, you should visit my page.
_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com

-
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