[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Directory separators
- Subject: Directory separators
- From: Ben Tupper <btupper(at)bigelow.org>
- Date: Tue, 13 Feb 2001 10:02:04 -0500
- Newsgroups: comp.lang.idl-pvwave
- Organization: Bigelow Laboratory for Ocean Sciences
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:23512
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
--
Ben Tupper
Bigelow Laboratory for Ocean Sciences
180 McKown Point Rd.
W. Boothbay Harbor, ME 04575
btupper@bigelow.org