I am trying to write a script that runs on our server, and it gets a list of all workstations that are on our network (actually it gets a list of all non-domain controllers, and I rebuild the array and filter out machines that I do not want to touch.
I have everything working in the script, but now what I want to add is that for each workstation in the array, I want to back files up from the local drive to a network drive. I have successfully mapped a drive letter, but my problem is the actual copying of files. It ranges from just a few files here and there, to whole directories. File::Copy does not look like it will deal well with this without writing a lot of extra code (I could be wrong, as I am VERY new to Perl). So, I am considering using the system function to call a batch file. Only problem is that the batch file would not know the name of the machine it is backing up, therefore not being able to put the files in the correct directory on the network drive. The doc umentation I have read on the system function says that you can pass a variable for use the the command that you are calling. So, what I am attempting to do is to call a batch file, and pass a variable to the batch file. Any suggestions? If I am just being stupid, and there is a much easier way to do this, I am very open to it. I am quite anxious to get this script done and out of the way. Thanks in advance for any responses/ideas! -Chris _______________________________________________ Perl-Win32-Admin mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin
