How about using Win32::FileCopy()? It can accept both UNCs as well as mapped drives.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Manross Sent: Wednesday, February 04, 2004 10:36 AM To: John Deretich Cc: Perl-Win32-Admin-Request (E-mail) Subject: RE: Copying the contents of one mapped drive onto another if (!system ("xcopy32 c:\*.* d:\ /s /e /v /h /k /r /c")) { print "worked\n"; } else { print "failed\n"; } At least I think xcopy32 returns 0 on success... Steven -----Original Message----- From: John Deretich [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 11:22 AM To: Steven Manross Cc: Perl-Win32-Admin-Request (E-mail) Subject: RE: Copying the contents of one mapped drive onto another Steven, do you know how to do this command in a system's command? thanks, John -----Original Message----- From: Steven Manross [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 9:36 AM To: John Deretich; Perl-Win32-Admin-Request (E-mail) Subject: RE: Copying the contents of one mapped drive onto another Why doesn't xcopy work? It copies subdirs, empty dirs, etc.. xcopy32 c:\*.* d:\ /s /e /v /h /k /r /c Adding a /y if you aren't using NT... Other than that, File::Copy works great for all those types of situations. It doesn't touch security, but there are perl tools to do that as well (Win32::Perms). Or just find a copy of scopy (Security Copy?). HTH Steven -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Deretich Sent: Wednesday, February 04, 2004 10:16 AM To: Perl-Win32-Admin-Request (E-mail) Subject: Copying the contents of one mapped drive onto another Hi, does anyone know how to copy the contents of one mapped drive onto another, including all files and directories? Xcopy doesn't work. thanks, John _______________________________________________ Perl-Win32-Admin mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs _______________________________________________ Perl-Win32-Admin mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs _______________________________________________ Perl-Win32-Admin mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
