Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: Users home drives

by young_david (Friar)
on Jun 24, 2003 at 22:04 UTC ( #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?

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2023-02-09 05:26 GMT
Find Nodes?
    Voting Booth?
    I prefer not to run the latest version of Perl because:

    Results (44 votes). Check out past polls.