Irfan J Sayed wrote:
Hi,

Following command works fine.

 use File::Copy::Recursive qw(dircopy);
  dircopy($source, $target);

Thanks for all your help.

Excellent! Glad to help :) You may want to consider posting inline instead of top posting for list discussions. Its much easier to read and much more likely people will read it and join in.


"JupiterHost.Net" <[EMAIL PROTECTED]> 04/07/2006 12:05 AM

To
beginners@perl.org
cc

Subject
Re: windows command help








Chas Owens wrote:


On 4/6/06, Irfan J Sayed <[EMAIL PROTECTED]> wrote:


Hi All,

I need to run the windows copy command from command prompt to copy

several

folders and files in specific folder to another folder

I am running following command

C:\Documents and Settings\Administrator>copy D:\vobs d:
D:\vobs\*
The system cannot find the file specified.
      0 file(s) copied.

C:\Documents and Settings\Administrator>

plz let me know what is the wrong

Regards
Irfan Sayed


Assuming that you need to do this inside a Perl program, you might
consider using File::Xcopy.

use File::Xcopy;

syscopy("D:/vobs", "D:");


Or better yet:

  use File::Copy::Recursive qw(dircopy);
  dircopy($source, $target);

Then you don't have to rely on how windows decides to do a copy, which appears to be the problem, plus it's 100% portable...


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to