Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

get windows system variables...

Status
Not open for further replies.

lovekang

Programmer
Feb 16, 2006
86
0
0
KR
When you type "set" in the dos prompt, you can get lot's of variables and values.

other than what you get using System getProperties method, is it possible?

if so how?

thanks in advance.
 
Think you'll have to do Runtime.getRuntime().exec("set") to get a Process and read the returned values from the output stream of that process.

Tim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top