delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/01/05/12:42:38

From: DAUTREVAUX AT microprocess DOT com (Bernard Dautrevaux)
Subject: RE: DOS <-> Unix filenames
5 Jan 1999 12:42:38 -0800 :
Message-ID: <8135911A809AD211AF6300A02480D1750348A0.cygnus.gnu-win32@IIS000.microdata.fr>
Mime-Version: 1.0
To: "'roger AT isp DOT uni-kassel DOT de'" <roger AT isp DOT uni-kassel DOT de>,
gnu-win32 AT cygnus DOT com

> -----Message d'origine-----
> De:	Roger René Kommer [SMTP:kommer AT artefaktur DOT com]
> Date:	Monday, January 04, 1999 15:25
> À:	gnu-win32 AT cygnus DOT com
> Objet:	DOS <-> Unix filenames
> 
> Hi,
> 
> I like to instrument bash, sed, etc. to manage my NT Server.
> 
> A common problem is, that in scripts that uses gygwin and NT command
> line utilities I have to covert the filenames from NT to cygwin
> and vice versa.
> 
> Sample:
> 
> //e/d/cxx/aproject <-> e:\d\cxx\aproject
> /usr/local/myfiles <-> d:\unixfs\usr\local\myfiles
> /cdrom/x/file      <-> x:\file
> ../dir/output       <-> .\dir\output
> 
> What I need is a (two) utilities which can convert these filenames
> ufn2dfn [u]nix[f]ile[n]ame2[d]os[f]ile[n]ame
> and
> dfn2ufn [d]os[f]ile[n]ame2[u]nix[f]ile[n]ame
> 
	<snipped>
> 
> If I didn't overlook a simpler solution I would suggest to integrate
this
> into the cygwin package. Alternatively it can be integrated into the
ls or
> mount command.

They already are present in cygwin-B20:
	ufn2dfn <==> cygpath -w
	dfn2ufn <==> cygpath -u

cygpath accept path names expressed as well as Unix-like names or
DOS-like names, and is also able to convert DOS ';'-separated path lists
in/from UNIX ':'-separated path lists.

	Regards,

		Bernard

------------------------------------------------------------------------
------
Bernard Dautrevaux
Microprocess Ingéniérie
97 bis, rue de Colombes
92400 COURBEVOIE
FRANCE
Tel:	+33 (0) 1 47 68 80 80
Fax:	+33 (0) 1 47 88 97 85
e-mail:	dautrevaux AT microprocess DOT com
		b DOT dautrevaux AT usa DOT net
------------------------------------------------------------------------
------

-
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