Usar xcopy sin prompt

El comando xcopy es muy util a la hora de hacer .bat para realizar tareas "nocturnas" , de backup y esas cosas.
Pero tenia el inconviente que siempre pregunta si se quiere crear File or Directory . Como en el ejemplo


    xcopy "bin\development\whee.config.example"
          "TestConnectionExternal\bin\Debug\whee.config.example"
It prompts me with the following every time:
Does TestConnectionExternal\bin\Debug\whee.config specify a file name or directory name on the target (F = file, D = directory)?
Para evitar esto podemos decirle  con wildcars * Ejemplo
xcopy /y "bin\development\whee.config.example" "TestConnectionExternal\bin\Debug\*" 
Con ello ya no pregunta.
Fuente: http://stackoverflow.com/questions/3018289/xcopy-file-rename-suppress-does-xxx-specify-a-file-name-message

Saludos
Adalberto Montanía

Comentarios