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

Home » Public Forums » archive » Re: Directory separators
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: Directory separators [message #23760 is a reply to message #23758] Tue, 13 February 2001 08:32 Go to previous messageGo to previous message
Dave Greenwood is currently offline  Dave Greenwood
Messages: 33
Registered: October 2000
Member
Ben Tupper <btupper@bigelow.org> wrote:
> Howdy,
>
> I have been using the following function to select the appropriate OS
> specific directory separator. I have two questions about it: (1) what
> is the correct directory separator in VMS?, and (2) is there a built-in
> means of getting the same information?
>
> Thanks,
>
> Ben
>
> ;------START
> FUNCTION SYSSEP
>
> Case StrLowCase(!Version.OS_Family) of
> 'unix': Return, '/'
> 'win': Return,'\'
> 'macos': Return,':'
> 'vms': Return, ''
> Else: Return, ''
> EndCase
>
> End
> ;---------END

Paul van Delst is correct that "." separates subdirectories in VMS.
However, the most frequent use that I've seen for a case statement like
the above is to separate the directory specification from a file name.
In that case you'd want "]". To complete Paul's example:

DISK$NAME1:[PAULV.DIR.SUBDIR.SUBSUBDIR]filename.ext

Dave
--------------
Dave Greenwood Email: Greenwoodde@ORNL.GOV
Oak Ridge National Lab %STD-W-DISCLAIMER, I only speak for myself
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Optimized IDL machines and license question
Next Topic: MPI_Plot Was: Something else

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

Current Time: Fri Oct 10 16:27:56 PDT 2025

Total time taken to generate the page: 1.83711 seconds