1.

Solve : xcopy no prompt?

Answer»

I'm doing a copy with the following command to perform a copy.

Code: [Select]xcopy /s /c /d /e /h /i /r /k /y /q

I'm encountering "Are you sure (Y/N)?" prompt. Any idea how to I remove the prompt?xcopy  /?

/Y           Suppresses prompting to confirm you WANT to overwrite an
               existing destination file. dos isnt case senitive, have you tried it with just /y?  That should tell it to replace the file no matter.

This sort of falls in the same catagory, I'm using XCOPY to copy directoryies and it keeps asking me for DIRECTORIES or files, can I make it auto-choose directories?HELPMEH - ensure the destination path ends with a backslash to indicate a directory.

e.g. xcopy ....c:\sourcepath d:\destinationpath\Helpme,


xcopy /?
.
.
.
  /S           Copies directories and subdirectories except empty ones.
.
.
.

Dusty
Thanks, that should help!

Billrich
I want to copy the empty directories./ INDICATES the last dir at the end of the desenation an sourceThanks squall, oh and btw, you spelled guardian wrong.figures, I was tring to think of something but it evaded me.



Discussion

No Comment Found