Retrieve System Path

HI all, i would like to run command which located inside windows folder, and in consideration for different user may install their windows in different kind of name, i know in command prompt we could type %SYSTEMROOT%\application.exe, but by implementing this string to Process.exec fail. return exit code = 2 (path not found or some kind).

Is there any class/method able to return the system/windows path?

[419 byte] By [eh2001a] at [2007-11-26 18:24:44]
# 1
System.getenv(String name) Kaj
kajbja at 2007-7-9 5:58:48 > top of Java-index,Java Essentials,New To Java...
# 2
Hi kaj, thanks alot on this~in case other ppl needed this as well, here is the link for detail of System.getenv: http://java.sun.com/j2se/1.5.0/docs/api/java/lang/System.html#getenv(java.lang.String)
eh2001a at 2007-7-9 5:58:48 > top of Java-index,Java Essentials,New To Java...