Charlie,

In $JBCRELEASEDIR/include/JBC.h there is an EQUAGTE for the delimiter
     EQUATE          DIR_DELIM_CH            TO      "\"
You can include that include in your programs and check for that with
   INCLUDE JBC.h

Dan Ell

From: [email protected] [mailto:[email protected]] On Behalf Of 
Charlie Noah
Sent: Monday, December 03, 2012 7:52 AM
To: Jbase Google Group
Subject: Detect OS

I have a program that I want to make platform independent between Windows and 
Unix. It needs to get a folder/directory listing (Windows - dir, Unix - ls) so 
it needs to know what OS it's on.

Executed "hostname" returns XP on my XP box (I don't know what it returns on 
other Windows or Unix/AIX/Linux)

SYSTEM(1017) returns WINNT on my XP box (I don't know what it returns on others 
Windows or Unix/AIX/Linux)

Environment variable JBCDEV_BIN result contains \ on Windows, / on Unix (very 
kludgy)

What methods do you use to determine what OS you're on?

Thanks,
Charlie Noah

Tiny Bear's Wild Bird Store
Home of "Safety Net Shipping"
http://www.TinyBearWildBirdStore.com
Toll Free: 1-855-TinyBear (855-846-9232)

--
--
IMPORTANT: T24/Globus posts are no longer accepted on this forum.

To post, send email to [email protected]<mailto:[email protected]>
To unsubscribe, send email to 
[email protected]<mailto:[email protected]>
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en



-- 
-- 
IMPORTANT: T24/Globus posts are no longer accepted on this forum.

To post, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en



Reply via email to