Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: writing to a users "My Documents" folder

by Sandy (Curate)
on Jan 27, 2009 at 21:16 UTC ( #739350=note: print w/ replies, xml ) Need Help??


in reply to writing to a users "My Documents" folder

If you want to play it safe, do not assume that the user's personal folder is on the C drive.

The windows registry (at least on my computer) contains the personal folder for the user

HKEY_CURRENT_USER\ software\ microsoft\ windows\ CurrentVersion\ Explorer\ Shell Folders\ Personal\
I suppose that there is a CPAN module that should be able to read the Windows registry.

update

http://search.cpan.org/~adamk/Win32-TieRegistry-0.25/TieRegistry.pm


Comment on Re: writing to a users "My Documents" folder
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://739350]
help
Chatterbox?
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: (16)
As of 2014-12-18 14:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (56 votes), past polls