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.
give more advice on this, but I hope this helps.
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.
I'm sure some of the more experienced Monks will be able touse 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
give more advice on this, but I hope this helps.
|
---|
In Section
Seekers of Perl Wisdom