Copy & Verify?

  • Thread starter Thread starter Harkhof
  • Start date Start date
H

Harkhof

I need to copy a folder with several directories in it from one drive to
another and would like to automatically overwrite and verify these files
without interaction. The command line syntax I'm using is:

Copy /v M:\dirname L:\dirname

Windows returns:

"System cannot find the file specified. 0 files copied.".

There are no files in this directory, only sub folders that contain more sub
folders (which contain the files. There are 879 files in 79 folders). I
assume that the reason windows can't "find the file specified" is because
there are no files in the parent folder.

Desired objective is in first paragraph. Any ideas appreciated.

Thanks,
Hark
 
Harkhof said:
I need to copy a folder with several directories in it from one drive to
another and would like to automatically overwrite and verify these files
without interaction. The command line syntax I'm using is:

Copy /v M:\dirname L:\dirname

Windows returns:

"System cannot find the file specified. 0 files copied.".

There are no files in this directory, only sub folders that contain more sub
folders (which contain the files. There are 879 files in 79 folders). I
assume that the reason windows can't "find the file specified" is because
there are no files in the parent folder.

Desired objective is in first paragraph. Any ideas appreciated.

Thanks,
Hark

type xcopy /?

steve.
 
xcopy M:\dirname L:\dirname /v /e /y

Enclose the paths in "Quotes" if they contain spaces.

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
|I need to copy a folder with several directories in it from one drive to
| another and would like to automatically overwrite and verify these files
| without interaction. The command line syntax I'm using is:
|
| Copy /v M:\dirname L:\dirname
|
| Windows returns:
|
| "System cannot find the file specified. 0 files copied.".
|
| There are no files in this directory, only sub folders that contain more
sub
| folders (which contain the files. There are 879 files in 79 folders). I
| assume that the reason windows can't "find the file specified" is because
| there are no files in the parent folder.
|
| Desired objective is in first paragraph. Any ideas appreciated.
|
| Thanks,
| Hark
|
|
 
Harkhof said:
I need to copy a folder with several directories in it from one drive
to another and would like to automatically overwrite and verify these
files without interaction. The command line syntax I'm using is:

Copy /v M:\dirname L:\dirname

Windows returns:

"System cannot find the file specified. 0 files copied.".

There are no files in this directory, only sub folders that contain
more sub folders (which contain the files. There are 879 files in 79
folders). I assume that the reason windows can't "find the file
specified" is because there are no files in the parent folder.

Desired objective is in first paragraph. Any ideas appreciated.

COPY won't span or handle sub-folders. Use XCOPY with the "/S" switch.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top