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

Home » Public Forums » archive » Cross-platform !PATH (was Cross-platform PWD)
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: Cross-platform !PATH (was Cross-platform PWD) [message #11948 is a reply to message #11897] Mon, 08 June 1998 00:00 Go to previous message
David Foster is currently offline  David Foster
Messages: 341
Registered: January 1996
Senior Member
Robert S. Mallozzi wrote:
>

> How about this one:
>
> How does one expand !PATH in a platform independent
> manner?
>
> CD, CURRENT = currentDir
> !PATH = EXPAND_PATH ('+' + currentDir) + delimiter + !PATH
>
> "delimiter" is platform-dependent, but required :-(

You can use the system variable !VERSION:

case ( strupcase(!version.os_family)) of
'UNIX': delim = '/'
'MACOS': delim =
'VMS': delim =
'WINDOWS': delim = '\'
else: print, 'OS uncrecognized'
endcase

!VERSION.OS contains more specific OS information.

Dave
--

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
David S. Foster Univ. of California, San Diego
Programmer/Analyst Brain Image Analysis Laboratory
foster@bial1.ucsd.edu Department of Psychiatry
(619) 622-5892 8950 Via La Jolla Drive, Suite 2240
La Jolla, CA 92037
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
[Message index]
 
Read Message
Read Message
Previous Topic: Object Graphics and VRML?
Next Topic: Re: Postscript problem

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

Current Time: Mon Dec 01 21:57:19 PST 2025

Total time taken to generate the page: 0.17340 seconds