günther
1st March 2011, 09:43
We've been looking for a way to determine the installed version on hundreds of pcs.
At the moment, we have two basics:
a) copy %PROGRAMFILES%\Baan IV\bin\bw.exe to Unix, then run "strings bw.exe | grep B40c"; this gives e.g. B40c.98
b) run "findstr B40c %PROGRAMFILES%\Baan IV\bin\bw.exe"; this gives lot of output, but at least you can see B40c.98, too.
Any other ideas?
Günther
litrax
1st March 2011, 17:50
We use this in ERPLN but it should work in BaanIV too:
Write a session with something like:
printline = "" client_version = ""
pointer = seq.open(filename, "a")
client_version = getenv$("BSH_VERSION")
if isspace(client_version) then
version = "no version determined"
endif
printline = sprintf$(logname$ & "|" & version)
ret = seq.puts(printline,pointer)
ret = seq.close(pointer)
Define a Session Group in ttaad2107m000
Insert the newly session in ttaad2106m000
Define the session group for every baan-user in ttaad2105m000
We get e.g. the following output in the specified file:
loginname|8.42.7
If variable BSH_VERSION don't match for you, then debug the session and search with "l" or "L" for suitable program variables in which the client version is stored.
Just an idea ;)
günther
2nd March 2011, 15:08
Hi Litrax,
thanks for the reply. Unfortunately, our Baan IV does only set the environment variables BSHELL_MACHINE_ID, BSHELL_PTY_SLOT, BSHELL_PORT_SET and BSHELL_OS_RELEASE; I tested this with BW client and WorkTop.
Within the debugger and l / L, I could not find out an appropriate variable.
Günther