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 #35739 is a reply to message #35736] Thu, 10 July 2003 09:21 Go to previous messageGo to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
Haje Korth wrote:
>
> Just replace '/' with '\'.
>
> Haje
>
> --
>
> "Justin Sieglaff" <justins@ssec.wisc.edu> wrote in message
> news:9bc4f51c.0307100658.56f63b79@posting.google.com...
>> Hi everyone....
>>
>> A quick question. I've created code and after it is installed on a
>> user's machine I want to make the current directory one of the
>> directories included with the code. For UNIX I've added the following
>> code:
>>
>> CD, '../source', current=currdir
>>
>> Since I have never used IDL for Windows I'm not sure how to add a line
>> for Windows path. Any help would be greatly appreciated!
>>
>> Thanks,
>>
>> Justin


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

??

paulv

p.s. I didn't check the syntax. And !VERSION.OS_FAMILY might not be the value you need,
but you get the idea.

--
Paul van Delst
CIMSS @ NOAA/NCEP/EMC
Ph: (301)763-8000 x7748
Fax:(301)763-8545
[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: Sat Oct 11 20:16:38 PDT 2025

Total time taken to generate the page: 0.56137 seconds