Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Users home drives

by young_david (Friar)
on Jun 24, 2003 at 22:04 UTC ( [id://268697]=note: print w/replies, xml ) Need Help??


in reply to Users home drives

Perl maintains environment variables in a special hash named `%ENV'.
Try typing "perldoc env" to get more info.

I'm not sure how it would be done for a list of account names from the server side, but you could
access local environment variables on each workstation by using %ENV.
use strict; my $profile = $ENV{'USERPROFILE'}; print $profile, "\n"; # $profile contains the path to the user's profi +le # usually located in C:\Documents and Settings\u +ser
I'm sure some of the more experienced Monks will be able to
give more advice on this, but I hope this helps.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-04-24 08:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found