tcf22 has asked for the wisdom of the Perl Monks concerning the following question:
I would rather do this part in perl without any OLE objects. Does anyone know of a module that provides an interface for copying a folder and its contents?use Win32::OLE; Win32::OLE->Option(Warn => 3); #die on error ... #Create Physical Folders eval{ my $fs = Win32::OLE->CreateObject("Scripting.FileSystemObject"); $fs->CopyFolder("$PhysicalPath\\Template", "$PhysicalPath\\$SiteNum" +, 1); }; if($@){ #Some error handling stuff here }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Folder Copy
by particle (Vicar) on May 07, 2003 at 15:13 UTC | |
|
Re: Folder Copy
by nite_man (Deacon) on May 07, 2003 at 15:16 UTC |