Hi guys,
I’m looking for some help with coping files over domains. At my work we
have 92 domains, some trusted, most not, all on the same subnet. I’ve
created a back up check that scans the back up log files on each of the 92
PDC’s and emails the result to an email address. Instead of emails I
would rather create a text file and copy it over to a shared folder on the web
server. After some testing using the following code: use File::Copy; $source = "C:\\backup\\backup_check.txt"; $dest = "\\\\<WEB_SERVER_IP>\\backupcheck"; copy("$source","$dest") or die
"Problem copying file!\n\n Error: $!\n\n"; I realised that some domains need a username/password to
access the shared folder on the web server. Does anyone know how I can copy a
file with a username and password along with the copy command or is there some
other module I can use to carry this out? Thanks in advance for any help. Ewen |
_______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs