Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: windows app-data path

by BrowserUk (Patriarch)
on Nov 19, 2011 at 10:49 UTC ( [id://938960]=note: print w/replies, xml ) Need Help??


in reply to windows app-data path

See $ENV{ APPDATA }


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^2: windows app-data path
by Rudolf (Pilgrim) on Nov 19, 2011 at 13:59 UTC

    momo33, Im not sure if this will help you but I use my perl scripts in XP and win7, and here are the things I use to find the correct paths.. good luck :)

    $user = getlogin(); # get username if(-e(-d("C:/users"))){$users = "users";} #check if exists elsif(-e(-d("C:/Documents and Settings"))){ $users = "Documents and Settings"; } $OS = $^O;

      This approach will fail for example on non-English Windows XP. For example German Windows XP has Dokumente und Einstellungen as the directory name.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2024-04-18 02:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found