dotgnu-pnet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Pnet-developers] Platform Independent Directory Separators


From: Earnie Boyd
Subject: Re: [Pnet-developers] Platform Independent Directory Separators
Date: Thu, 30 Oct 2003 07:38:21 -0500
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2.1) Gecko/20021130

Gopal V wrote:

Do DOS/Non-Unix paths get translated by the ilrun
system on the execution platform or must that be
accounted for during coding and compiling on the
source platform?


Hmm..... to quote:

"""
The System.IO.Path.DirectorySeparatorChar and
System.IO.Path.AltDirectorySeparatorChar store
implementation-defined directory separator characters
.
"""

I think that "/" does work on .NET


The only reason I know to convert / to \\ is when spawning a process that requires command.com/cmd.exe. If a script file or environment settings and variables uses \, then the easiest method is to convert them to / before using the string value. Before spawning a process, convert the path to the executable from / to \\ instead.

Earnie
--
http://www.mingw.org
Powered by SourceForge <http://sourceforge.net/projects/mingw>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]