dhowells
12th August 2009, 18:03
Is there a predefined variable or function that will tell what operation system Baan is running on? We will be migrating later this year from UNIX to NT.
I am creating a new customization that has to do with file manipulation. There will be different paths and file manipulation based on the environment.
I would just assume have both versions available now while creating the code. Instead of having to revisit the code at a later point.
Thanks,
Dan
norwim
12th August 2009, 18:10
Hi there,
try OSTYPE or BSHELL_MACHINE_ID.
But why the heck port to NT? No OS support, no support for new HW, practically only possible as virtual machine (because of lacking drivers) - why not linux if I may be so bold to ask?
regards
Norbert
dhowells
12th August 2009, 18:17
Not sure the reasons for the decision. New client and it is in stone. Just have to support it...
zacharyg
12th August 2009, 18:53
The following function will surffice in fulfilling your requirement.
long ostype()
Description
This returns a long value that indicates the operating system environment. The possible values are:
OS_WINDOWS_NT Windows/NT
OS_WINDOWS_95 Windows 95
OS_UNIX All UNIX variants
Context
Baan VM function.
© 1998 Baan Development B.V. All rights reserved
dhowells
12th August 2009, 18:56
Perfect, thanks for the input.
bdittmar
12th August 2009, 19:19
Is there a predefined variable or function that will tell what operation system Baan is running on? We will be migrating later this year from UNIX to NT.
I am creating a new customization that has to do with file manipulation. There will be different paths and file manipulation based on the environment.
I would just assume have both versions available now while creating the code. Instead of having to revisit the code at a later point.
Thanks,
Dan
Hello,
BaanERP Programmers Guide
ostype()
--------------------------------------------------------------------------------
Syntax
long ostype()
Description
This returns a long value that indicates the operating system environment. The possible values are:
OS_WINDOWS_NT Windows/NT
OS_WINDOWS_95 Windows 95
OS_UNIX All UNIX variants
OS_OS400 AS400
Context
Bshell function.
Regards