Subject: Re: converting between UNC and NT files names?
From: [email-masked] (Mumit Khan)

11 Dec 1997 13:57:43 -0800
Message-ID: <[email-masked]>
References: <[email-masked]>
Reply-To: Mumit Khan <[email-masked]>
Mime-Version: 1.0
Content-Type: MULTIPART/MIXED; BOUNDARY="1753259445-118504625-881860878=:23836"
To: Kevin Hughes <[email-masked]>
Cc: "Gnuwin95 (E-mail)" <[email-masked]>

  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to [email-masked] for more info.

--1753259445-118504625-881860878=:23836
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Content-ID: <[email-masked]>

On Thu, 11 Dec 1997, Kevin Hughes wrote:

> Is there any easy way of converting between the unc used by the gnu tools for file names and the standard
> NT file names? I would like to call native NT tools directly from shell scripts but all the file names I have
> in variables etc. are in UNC format and the tools only understand the standard names.
> 

The attached piece of code may help you get started. Simply run it with
the posix filename(s) on the command line and it'll spit out both relative
and absolute win32 pathnames.

   % posix2win32path . //server/src
   . --> c:\tmp (.)
   //server/src --> \\server\src (\\server\src)

Regards, 
Mumit -- [email-masked]
http://www.xraylith.wisc.edu/~khan/

--1753259445-118504625-881860878=:23836
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; NAME="pathconv.cc"
Content-Transfer-Encoding: BASE64
Content-ID: <[email-masked]>
Content-Description: posix to win32 path converter

--1753259445-118504625-881860878=:23836--
-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".