Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: Re: (OT) cross-platform $HOME

by BrowserUk (Pope)
on Feb 23, 2004 at 05:07 UTC ( #331034=note: print w/replies, xml ) Need Help??

in reply to Re: (OT) cross-platform $HOME
in thread (OT) cross-platform $HOME

On XP, you can short-circuit the route to the Application Data directory using $ENV{ APPDATA }, but I'm not sure when (which version) this became available. It wasn't there on NT4, so I think your suggestion is probably better if backwards compatiblity is a concern.

Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
Timing (and a little luck) are everything!

Replies are listed 'Best First'.
Re: Re: Re: (OT) cross-platform $HOME
by allolex (Curate) on Feb 23, 2004 at 15:37 UTC

    ++BrowserUK. This approach is also better because it supports locales. The application data directory is not always called "Application Data" (e.g. in the German locale it's called "Anwendungsdateien").


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://331034]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2016-10-24 02:51 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (302 votes). Check out past polls.