Getting System32 folder location with java -


on xp , above, system32 folder @ c:\windows\system32. on windows 2000 @ c:\winnt\system32. there

system.getproperty("something");
or way can location of system32 folder?

since think nt, way through environment variables is: %windir%\system32

you can this:

string sysdir = system.getenv("windir") + "\\system32"; 

more default environment variables windows on wikipedia: http://en.wikipedia.org/wiki/environment_variable#examples_from_microsoft_windows

systemroot , windir identical in nt systems, windir works older, 9x kernel-based windows.


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -