728x90
windows 9x -> command.exe /c set
windows nt,2000,xp -> cmd.exe /c set
linux? -> env
실행할 경우 각종 컴퓨터의 환경설정이 나온다.
HOMEDRIVE=C:
HOMEPATH=\Users\lvsin
JAVA_HOME=C:\Program Files\Java\jdk1.6.0_11
LOCALAPPDATA=C:\Users\lvsin\AppData\Local
LOGONSERVER=\\LVSIN-PC
NUMBER_OF_PROCESSORS=2
OS=Windows_NT
Path=C:\Program Files\Java\jdk1.6.0_11\BIN;C:\apache-tomcat-5.5.26\BIN;C:\Windows\system32;C:\Windows;C:\Windows\Sy
t\ALZip;C:\Program Files\TortoiseSVN\bin;C:\Program Files\ESTsoft\ALZip;C:\Program Files\ESTsoft\ALSee;C:\Program F
\ESTsoft\ALSee;C:\Program Files\ESTsoft\ALSee;C:\Program Files\ESTsoft\ALSee;C:\Program Files\ESTsoft\ALSee;C:\Prog
Files\ESTsoft\ALSee;C:\Program Files\ESTsoft\ALSee
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 23 Stepping 6, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=1706
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
대략..긁으면 이렇게 나온다..
여기서 설정을 읽어들여서 컨트롤 하면 된다...
자바로 치자면.. Propertoes props=new Properties() 로 갖고와서 컨트롤 하면 된다.
windows nt,2000,xp -> cmd.exe /c set
linux? -> env
실행할 경우 각종 컴퓨터의 환경설정이 나온다.
HOMEDRIVE=C:
HOMEPATH=\Users\lvsin
JAVA_HOME=C:\Program Files\Java\jdk1.6.0_11
LOCALAPPDATA=C:\Users\lvsin\AppData\Local
LOGONSERVER=\\LVSIN-PC
NUMBER_OF_PROCESSORS=2
OS=Windows_NT
Path=C:\Program Files\Java\jdk1.6.0_11\BIN;C:\apache-tomcat-5.5.26\BIN;C:\Windows\system32;C:\Windows;C:\Windows\Sy
t\ALZip;C:\Program Files\TortoiseSVN\bin;C:\Program Files\ESTsoft\ALZip;C:\Program Files\ESTsoft\ALSee;C:\Program F
\ESTsoft\ALSee;C:\Program Files\ESTsoft\ALSee;C:\Program Files\ESTsoft\ALSee;C:\Program Files\ESTsoft\ALSee;C:\Prog
Files\ESTsoft\ALSee;C:\Program Files\ESTsoft\ALSee
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 23 Stepping 6, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=1706
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
대략..긁으면 이렇게 나온다..
여기서 설정을 읽어들여서 컨트롤 하면 된다...
자바로 치자면.. Propertoes props=new Properties() 로 갖고와서 컨트롤 하면 된다.
728x90