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