Simple Bat file

G

Guest

Hi, thanks for all the help yesterday. the simple bat file is now working.
The follwing is the bat file:

XCOPY /S C:\"Documents and Settings\Rafik\My Documents\Other" C:\Other

I have one more problem. when i run the bat file, i get the following
message:

"Does C:\Other specify a file name or directory on the target (F-FILENAME,
D-DIRECTORY)?

my question is how do i copy the whole folder, (including the actual
folder), without being asked this question.

regards and thanks in advance.
 
D

David H. Lipman

XCOPY "C:\Documents and Settings\Rafik\My Documents\Other\*.*" C:\Other\ /s /c

Dave



| Hi, thanks for all the help yesterday. the simple bat file is now working.
| The follwing is the bat file:
|
| XCOPY /S C:\"Documents and Settings\Rafik\My Documents\Other" C:\Other
|
| I have one more problem. when i run the bat file, i get the following
| message:
|
| "Does C:\Other specify a file name or directory on the target (F-FILENAME,
| D-DIRECTORY)?
|
| my question is how do i copy the whole folder, (including the actual
| folder), without being asked this question.
|
| regards and thanks in advance.
 

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

Top