Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm fairly sure this is impossible because of syntax issues, but here goes anyway... I'm using dropbox to sync some files that I need to access in both windows and osx. In the program I need to specify where the files are located so I created the "DROP" environment variable in both windows and osx and pointed it to my dropbox root folder. But windows uses the %% wildcard while osx uses the $ wildcard.

Is there any way I can use this cross-platform or am I going to have to keep reseting them each time I need to use them?

Any way for either os to ignore the wildcards it doesn't recognize?? something like /$DROP%DROP%/.../...

share|improve this question
Which program are you using? How does it access the environment variables? –  slhck Aug 2 '12 at 7:50
I want to attach java docs to jar files in eclipse.. However these are located outside the workspace. The program doesn't have a way to access the variables that I know of.. just adding the path works for either os, but not both –  connoisseur Aug 3 '12 at 13:11
So are you programming in Java? You can get the OS from Java. –  slhck Aug 3 '12 at 14:05

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.