Regarding environment variables

how to get the environment variables of oracle enterprice manager to java class

Im writing like this is it correct way?

if (OS.indexOf("windows 9") > -1) {

p = r.exec( "command.com /c set" );

}

else if ( (OS.indexOf("nt") > -1)

|| (OS.indexOf("windows 2000") > -1 )

|| (OS.indexOf("windows xp") > -1) ) {

// thanks to JuanFran for the xp fix!

p = r.exec( "cmd.exe /c set" );

}

else {

// our last hope, we assume Unix (thanks to H. Ware for the fix)

p = r.exec( "dtprofile" );

}

Thanks in adavance

Rajani

[632 byte] By [rajnikanthgoldstonea] at [2007-11-27 3:11:49]
# 1
Use Java 5 or later and use System.getenv() Kaj
kajbja at 2007-7-12 8:14:17 > top of Java-index,Java Essentials,Java Programming...