comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: UNIX v. Windows Filepaths
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: UNIX v. Windows Filepaths [message #35735 is a reply to message #35733] Thu, 10 July 2003 13:24 Go to previous messageGo to previous message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
"Paul van Delst" <paul.vandelst@noaa.gov> wrote in message
news:3F0D9297.45974B4B@noaa.gov...
> Wot about summat like:
>
> CASE STRUPCASE( !VERSION.OS_FAMILY ) OF
> 'WINDOWS': DirSeparator = '\'
> 'MAC': DirSeparator = whatever the Mac directory separator is
> ELSE DirSeparator = '/' ; Default to Unix
> ENDCASE
>
> CD_Dir = '..'+DirSeparator+'source'
> CD, CD_Dir, current=currdir

Function PATH_SEP in the standard library returns the appropriate path
delimiter for the current platform.

Only since 5.5 though.

--
Mark Hadfield "Ka puwaha te tai nei, Hoea tatou"
m.hadfield@niwa.co.nz
National Institute for Water and Atmospheric Research (NIWA)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: User Functions for ENVI
Next Topic: IDL 6.0 Seminar Series

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 09:42:29 PDT 2025

Total time taken to generate the page: 2.13015 seconds