Creating a wildcard that will automaticatly recognize files on my pc.
I created a desktop application but everytime a loaded to a different computer I have to modify the hardcoeded path. How can I make it recognize that its different system and open the required folders?

Software/Hardware used:
ASKED: May 20, 2009  6:36 PM
UPDATED: May 20, 2009  10:17 PM

Answer Wiki:
Use System.getenv() to get environment variables. For instance, String variable = System.getenv("WINDIR"); will give you the Windows directory path which is usually C:Windows
Last Wiki Answer Submitted:  May 20, 2009  10:17 pm  by  mshen   27,310 pts.
All Answer Wiki Contributors:  mshen   27,310 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _