How to get environment variable in windows command prompt. getProperty() , don't use -D .